diff options
| author | dam <dam@gudinoff> | 2024-05-05 03:22:42 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-05-05 03:22:42 +0100 |
| commit | 1ae2933bcbda43d16d2583a28c3c5a74adaaa9e4 (patch) | |
| tree | 4918453917c4440c0586e94c4401e0b84a09cb85 /ttt.jai | |
| parent | 36af624cdd9cb54454587bfae21b30096986d22e (diff) | |
| download | task-time-tracker-1ae2933bcbda43d16d2583a28c3c5a74adaaa9e4.tar.zst task-time-tracker-1ae2933bcbda43d16d2583a28c3c5a74adaaa9e4.zip | |
Implemented default background and foreground colors.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -17,7 +17,12 @@ // - release : jai ttt.jai -quiet -x64 -release // - debug : jai ttt.jai -quiet -x64 +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"; +} #import "System"; #import "Sort"; #import "Math"; @@ -1157,8 +1162,10 @@ prompt_user_key :: (y: int, message: string) -> TUI.Key { } main :: () { - + +#if DEBUG_MEMORY { defer report_memory_leaks(); // TODO Remove after final debug sessions. +} defer free_memory(); @@ -1774,7 +1781,11 @@ main :: () { } assert(TUI.reset_terminal(), "Failed to reset TUI."); - + +#if DEBUG_MEMORY { + return; +} else { exit(xx ifx error_saving then 1 else 0); } +} |
