mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
Fix detailed_trace
module scope (#15912)
# Objective Fixes #15615 ## Solution `$crate` is a cool keyword metavariable ## Testing Created a test crate and used the macro ## Showcase ![image](https://github.com/user-attachments/assets/f0567224-126d-44e4-8905-26103da4ba14)
This commit is contained in:
parent
8a655e4d27
commit
63a3a987c6
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ pub fn error<E: Debug>(result: Result<(), E>) {
|
|||
macro_rules! detailed_trace {
|
||||
($($tts:tt)*) => {
|
||||
if cfg!(detailed_trace) {
|
||||
bevy_utils::tracing::trace!($($tts)*);
|
||||
$crate::tracing::trace!($($tts)*);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue