summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 23:36:33 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 23:36:50 -0500
commit8d1770423470d6f6384e258b9e27056a6dda8a04 (patch)
treed72b0298bfe928c4327401c34109c50b3d0e2125 /base.h
parentd7cd9edb84d9403eca0d4caae68815c12c560164 (diff)
finished documenting ted.h
Diffstat (limited to 'base.h')
-rw-r--r--base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/base.h b/base.h
index 21ff3a3..32229e0 100644
--- a/base.h
+++ b/base.h
@@ -122,7 +122,10 @@ typedef unsigned long long ullong;
#define PRINTF_FORMAT_STRING
#endif
-#define Status bool WarnUnusedResult // false = error, true = success
+// this type is an alias for bool, except that it
+// produces a warning if it's not used.
+// false = error, true = success
+#define Status bool WarnUnusedResult
#define arr_count(a) (sizeof (a) / sizeof *(a))