Simple plugin server example

This commit is contained in:
2025-12-11 22:36:29 +01:00
parent f49e5aa108
commit d2fe5d9d62
5 changed files with 119 additions and 3 deletions
+2
View File
@@ -1,11 +1,13 @@
#[macro_export]
macro_rules! logger {
(const $i:ident $name:expr) => {
#[allow(unused)]
pub const $i: $crate::once_cell::sync::Lazy<$crate::utils::logger::Logger> =
$crate::once_cell::sync::Lazy::new(|| $crate::utils::logger::Logger::new($name));
};
($i:ident $name:expr) => {
#[allow(unused)]
pub const $i: $crate::once_cell::sync::Lazy<$crate::utils::logger::Logger> =
$crate::once_cell::sync::Lazy::new(|| $crate::utils::logger::Logger::new($name));
};