From 10881d3088623f36bf4046a3d80bf9f513f54df6 Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 13 May 2024 15:56:18 +0100 Subject: Finish last TODO. --- ttt.jai | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'ttt.jai') diff --git a/ttt.jai b/ttt.jai index 56410e5..bb395fa 100644 --- a/ttt.jai +++ b/ttt.jai @@ -1,9 +1,6 @@ -DEBUG_MEMORY :: true; -#if DEBUG_MEMORY { -#import "Basic"()(MEMORY_DEBUGGER=true); // TODO Remove after final debug sessions. This takes up ~30MB of RAM. -} else { -#import "Basic"; -} +DEBUG :: false; + +#import "Basic"()(MEMORY_DEBUGGER=DEBUG); // Enabling memory debug adds ~30MB of RAM. #import "System"; #import "Sort"; #import "Math"; @@ -25,7 +22,6 @@ DB_FILE_SIGN_STR :: "TTT:B:02"; ASSERT_NOT_NULL :: "Parameter '%' is null."; ASSERT_NOT_EMPTY :: "Parameter '%' is empty."; -ASSERT_NOT_CONTAIN :: "'%' does not contain '%'."; ASSERT_INVALID_INDEX:: "Invalid index '%'."; SECONDS_IN_MINUTE :: cast(s64)60; @@ -1168,9 +1164,7 @@ prompt_user_key :: (y: int, message: string) -> TUI.Key { main :: () { -#if DEBUG_MEMORY { - defer report_memory_leaks(); // TODO Remove after final debug sessions. -} + #if DEBUG { defer report_memory_leaks(); } context.logger = print_error; -- cgit v1.2.3