Improved structure

This commit is contained in:
2025-09-14 14:20:36 +02:00
parent 59e96fe05e
commit a4ce0c0589
17 changed files with 357 additions and 321 deletions
+7 -7
View File
@@ -2,7 +2,7 @@
macro_rules! export_plugin {
($p:expr) => {
#[unsafe(no_mangle)]
pub extern "C" fn load_plugin() -> $crate::plugin::DynPlugin {
pub extern "C" fn load_plugin() -> $crate::utils::plugin::DynPlugin {
$p
}
};
@@ -11,20 +11,20 @@ macro_rules! export_plugin {
#[macro_export]
macro_rules! logger {
(const $i:ident $name:expr) => {
const $i: $crate::once_cell::sync::Lazy<$crate::logger::Logger> =
$crate::once_cell::sync::Lazy::new(|| $crate::logger::Logger::new($name));
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) => {
const $i: $crate::once_cell::sync::Lazy<$crate::logger::Logger> =
$crate::once_cell::sync::Lazy::new(|| $crate::logger::Logger::new($name));
pub const $i: $crate::once_cell::sync::Lazy<$crate::utils::logger::Logger> =
$crate::once_cell::sync::Lazy::new(|| $crate::utils::logger::Logger::new($name));
};
(const $name:expr) => {
$crate::once_cell::sync::Lazy::new(|| $crate::logger::Logger::new($name))
$crate::once_cell::sync::Lazy::new(|| $crate::utils::logger::Logger::new($name))
};
($name:expr) => {
$crate::logger::Logger::new($name)
$crate::logger::utils::Logger::new($name)
};
}