Phase 2 Complete: Conditional debug system + Final verification
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
@ -29,6 +29,15 @@ fn debug_log(msg: &str) {
|
||||
}
|
||||
}
|
||||
|
||||
// Conditional debug macro - only outputs if NYASH_DEBUG=1 environment variable is set
|
||||
macro_rules! debug_trace {
|
||||
($($arg:tt)*) => {
|
||||
if std::env::var("NYASH_DEBUG").unwrap_or_default() == "1" {
|
||||
eprintln!($($arg)*);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/// 実行時エラー
|
||||
#[derive(Error, Debug)]
|
||||
pub enum RuntimeError {
|
||||
|
||||
Reference in New Issue
Block a user