1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Don't export macros that should only be pub(crate)

This commit is contained in:
Emil Ernerfeldt
2022-04-25 22:01:32 +02:00
parent 95c0174331
commit 4d2eb5b71e
26 changed files with 39 additions and 47 deletions

View File

@@ -22,8 +22,6 @@ pub use crate::strip::*;
pub use crate::table::*;
/// Log an error with either `tracing` or `eprintln`
#[doc(hidden)]
#[macro_export]
macro_rules! log_err {
($fmt: literal, $($arg: tt)*) => {{
#[cfg(feature = "tracing")]
@@ -35,10 +33,9 @@ macro_rules! log_err {
);
}};
}
pub(crate) use log_err;
/// Panic in debug builds, log otherwise.
#[doc(hidden)]
#[macro_export]
macro_rules! log_or_panic {
($fmt: literal, $($arg: tt)*) => {{
if cfg!(debug_assertions) {
@@ -48,3 +45,4 @@ macro_rules! log_or_panic {
}
}};
}
pub(crate) use log_or_panic;