diff options
| author | 2025-02-02 01:54:47 -0600 | |
|---|---|---|
| committer | 2025-02-02 01:54:47 -0600 | |
| commit | 7d4330e1b7596249cc0c74ff498945bd13e68d28 (patch) | |
| tree | 8506165fbb2d31089a822690e5eccc804a89d4f3 /ozone-helpers/src/lib.rs | |
| parent | restructure project (diff) | |
random ahh changes before I make the actual thing
Diffstat (limited to 'ozone-helpers/src/lib.rs')
| -rw-r--r-- | ozone-helpers/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ozone-helpers/src/lib.rs b/ozone-helpers/src/lib.rs index 4412282..9a19422 100644 --- a/ozone-helpers/src/lib.rs +++ b/ozone-helpers/src/lib.rs @@ -1,8 +1,8 @@ extern crate proc_macro; -use proc_macro::TokenStream; +use proc_macro::{Literal, TokenStream, TokenTree}; -#[proc_macro_attribute] -pub fn ozone_special(attr: TokenStream, item: TokenStream) -> TokenStream { - todo!() -}
\ No newline at end of file +#[proc_macro] +pub fn ozone_arch_bits(_input: TokenStream) -> TokenStream { + TokenTree::from(Literal::string(&usize::BITS.to_string())).into() +} |
