gtk-ng: add debug warning banner

This commit is contained in:
Jeffrey C. Ollie
2025-07-24 21:14:47 -05:00
parent 3cdd6f4f5e
commit 33135f19dc
7 changed files with 128 additions and 2 deletions

View File

@@ -96,3 +96,9 @@ pub const Artifact = enum {
};
}
};
/// True if runtime safety checks are enabled.
pub const is_debug = switch (builtin.mode) {
.Debug, .ReleaseSafe => true,
.ReleaseFast, .ReleaseSmall => false,
};