macro_rules! debg2 {
($($fmt:expr),+) => { ... };
}
Expand description
Expands to produce a debug logging statement for high verbosity levels.
The macro is designed to output formatted debug messages to the standard error stream when a global logging level set within the crate is 5 or higher. It formats the message using provided expressions, marks the message with “DEBG” using ANSI color coding for enhanced terminal visibility, and appends the current file and line number for precise location tracking. This enables developers to efficiently trace and debug program execution, especially when dealing with complex synthesis algorithms in the Synthphonia module. The macro relies on a thread-local storage for consistent formatting in multi-threaded scenarios.