[−][src]Macro mynewt::fill_zero
Return a const struct that has all fields set to 0. Used for initialising static mutable structs like os_task
.
fill_zero!(os::os_task)
expands to
unsafe { ::core::mem::transmute:: < [ u8; ::core::mem::size_of::<os::os_task>() ], os::os_task > ( [ 0; ::core::mem::size_of::<os::os_task>() ] ) }