mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-13 19:15:48 +00:00
core: ensure comptime evaluation
This commit is contained in:
@@ -237,7 +237,7 @@ pub fn needsConfirmQuit(self: *const App) bool {
|
||||
/// Drain the mailbox.
|
||||
fn drainMailbox(self: *App, rt_app: *apprt.App) !void {
|
||||
while (self.mailbox.pop()) |message| {
|
||||
if (std.log.logEnabled(.debug, .app)) {
|
||||
if (comptime std.log.logEnabled(.debug, .app)) {
|
||||
switch (message) {
|
||||
// these tend to be way too verbose for normal debugging
|
||||
.redraw_surface, .redraw_inspector => {},
|
||||
|
||||
Reference in New Issue
Block a user