Skip to content

Commit 5aec0e1

Browse files
aero_proc::syscall: add doc comment :^)
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent 1bbba0f commit 5aec0e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/aero_proc/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ enum ArgType {
1414
Path,
1515
}
1616

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.
1722
#[proc_macro_attribute]
1823
pub fn syscall(_: TokenStream, item: TokenStream) -> TokenStream {
1924
let parsed_fn = syn::parse_macro_input!(item as syn::ItemFn);

0 commit comments

Comments
 (0)