summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
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))