Skip to content

Commit ded0f5e

Browse files
committed
Move info_raw macro to logging module.
1 parent c5a4f17 commit ded0f5e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ mod logging;
1010
pub use crate::logging::{log_raw, LogLevel};
1111
pub use px4_macros::px4_module_main;
1212

13-
#[macro_export]
14-
macro_rules! info_raw {
15-
($($arg:tt)+) => (
16-
$crate::log_raw($crate::LogLevel::Info, &format!($($arg)+))
17-
)
18-
}
19-
2013
#[doc(hidden)]
2114
pub fn _run<F>(modulename: &'static [u8], argc: u32, argv: *mut *mut u8, f: F) -> i32
2215
where

src/logging.rs

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ pub fn log_raw(level: LogLevel, message: &str) {
2525
}
2626
}
2727

28+
#[macro_export]
29+
macro_rules! info_raw {
30+
($($arg:tt)+) => (
31+
$crate::log_raw($crate::LogLevel::Info, &format!($($arg)+))
32+
)
33+
}
34+
2835
struct Px4Logger;
2936

3037
impl log::Log for Px4Logger {

0 commit comments

Comments
 (0)