20 lines
419 B
Rust
20 lines
419 B
Rust
//! OneLauncher utility functions
|
|
pub mod http;
|
|
pub mod io;
|
|
pub mod java;
|
|
pub mod pkg;
|
|
pub mod platform;
|
|
pub mod watcher;
|
|
|
|
/// mutable reference gets epically owned by free thinking macro!!!! (not clickbait)
|
|
/// im going insane insane insane insane insane insane
|
|
macro_rules! ref_owned {
|
|
($id:ident = $init:expr => $transform:block) => {{
|
|
let mut it = $init;
|
|
{
|
|
let $id = &mut it;
|
|
$transform;
|
|
}
|
|
it
|
|
}};
|
|
}
|