Skip to content

Commit

Permalink
don't assign to debug-only global variable in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
castholm committed Dec 3, 2024
1 parent f7b5ea7 commit daeb7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal_debug.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pub inline fn assertInitialized() void {
if (is_debug) std.debug.assert(glfw_initialized);
}
pub inline fn assumeInitialized() void {
glfw_initialized = true;
if (is_debug) glfw_initialized = true;
}

0 comments on commit daeb7b1

Please sign in to comment.