Macro lol_macros::zeroed

source ·
zeroed!() { /* proc-macro */ }
Expand description

Similar to std::mem::zeroed, except we only support types that are “allowed” to be “zeroed”, and therefore we make it “safe”, as opposed to std::mem::zeroed (which is unsafe).

This is pretty useful because lots of things in windows_sys is “unsafe” but in C land it is pretty normal to initialize them with {0}.