don't assign to debug-only global variable in release builds
This commit is contained in:
parent
f7b5ea78e3
commit
daeb7b1018
1 changed files with 1 additions and 1 deletions
|
@ -10,5 +10,5 @@ pub inline fn assertInitialized() void {
|
||||||
if (is_debug) std.debug.assert(glfw_initialized);
|
if (is_debug) std.debug.assert(glfw_initialized);
|
||||||
}
|
}
|
||||||
pub inline fn assumeInitialized() void {
|
pub inline fn assumeInitialized() void {
|
||||||
glfw_initialized = true;
|
if (is_debug) glfw_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue