aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai10
1 files changed, 5 insertions, 5 deletions
diff --git a/ttt.jai b/ttt.jai
index e15b00f..5848a35 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -17,7 +17,7 @@
// - release : jai ttt.jai -import_dir . -x64 -release
// - debug : jai ttt.jai -import_dir . -x64
-#import "Basic";
+#import "Basic"()(MEMORY_DEBUGGER=true);
#import "System";
#import "Math";
#import "POSIX";
@@ -219,10 +219,8 @@ truncate_string :: (str: string, length: s64, $encoding: Text_Encoding = .UTF8)
return length;
}
-// Returns true when the string is empty or consists of white space characters.
+// Returns true when the string is empty or consists of space characters.
is_empty_string :: (str: string) -> bool {
- // TODO TEST
- WIP
for 0..str.count-1 {
if str[it] == {;
case #char "\0"; #through;
@@ -251,7 +249,7 @@ replace_char :: (str: string, char find, char replace) -> string { // TODO Use m
}
return string;
}
-/*
+
// Prints, on row y and column x, the time using 5 characters centered on space.
// Returns the result of a call to mvprintw.
int mvprintw_time(int y, int x, intmax_t time, int space) {
@@ -1296,6 +1294,8 @@ bool read_enter_confirmation(int row, int style, const char *message) {
main :: () {
+ defer report_memory_leaks(); // TODO DEBUG
+
defer free_memory();
{ // Initialize app directory.