remove unused macro
This commit is contained in:
parent
d4913eb6c6
commit
c851818813
@ -2,17 +2,3 @@ pub mod cipherkeys;
|
||||
pub mod serverstate;
|
||||
pub mod mainloop;
|
||||
pub mod interserver;
|
||||
|
||||
// https://www.reddit.com/r/rust/comments/33xhhu/how_to_create_an_array_of_structs_that_havent/
|
||||
#[macro_export]
|
||||
macro_rules! init_array(
|
||||
($ty:ty, $len:expr, $val:expr) => (
|
||||
{
|
||||
let mut array: [$ty; $len] = unsafe { std::mem::uninitialized() };
|
||||
for i in array.iter_mut() {
|
||||
unsafe { ::std::ptr::write(i, $val); }
|
||||
}
|
||||
array
|
||||
}
|
||||
)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user