We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bbba0f commit 5aec0e1Copy full SHA for 5aec0e1
src/aero_proc/src/lib.rs
@@ -14,6 +14,11 @@ enum ArgType {
14
Path,
15
}
16
17
+/// Validates input buffers, structures, path and strings auto-magically.
18
+///
19
+/// Functions that use this macro are not allowed to be `async`, `unsafe`, or `const` and must
20
+/// have a valid return-type of `Result<usize, AeroSyscallError>`. In addition, the function cannot
21
+/// have generic parameters.
22
#[proc_macro_attribute]
23
pub fn syscall(_: TokenStream, item: TokenStream) -> TokenStream {
24
let parsed_fn = syn::parse_macro_input!(item as syn::ItemFn);
0 commit comments