#unsafe #body #attributes #wrap #block #macro

macro unsafe_fn_body

Wrap the function body in an unsafe block using attribute macros

4 releases

0.1.3 May 28, 2024
0.1.2 May 28, 2024
0.1.1 Feb 29, 2024
0.1.0 Feb 16, 2024

#1213 in Procedural macros


Used in ncheat

MIT license

4KB

Wrap the function body in an unsafe block using attribute macros

#[unsafe_fn_body::unsafe_fn_body]
fn unsafe_fn(){
    // ...
}
fn unsafe_fn(){
    unsafe{
        // ...
    }
}

Dependencies

~255–700KB
~17K SLoC