You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
493 B
18 lines
493 B
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
|
|
}
|
|
)
|
|
);
|