aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Test_IntSatArith.jai2
-rw-r--r--ttt.jai14
2 files changed, 5 insertions, 11 deletions
diff --git a/Test_IntSatArith.jai b/Test_IntSatArith.jai
index 8e9125c..2128f7b 100644
--- a/Test_IntSatArith.jai
+++ b/Test_IntSatArith.jai
@@ -4,7 +4,7 @@
#import "Compiler";
#import "Math";
#import "String";
-#load "Integer_Saturating_Arithmetic.jai";
+#import "Integer_Saturating_Arithmetic";
main :: () {
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;