summaryrefslogtreecommitdiff
path: root/arr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arr.c')
-rw-r--r--arr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arr.c b/arr.c
index c87cf6f..0e67eb3 100644
--- a/arr.c
+++ b/arr.c
@@ -140,6 +140,7 @@ You shouldn't rely on this, though, e.g. by doing
#define arr_foreach(arr, type, var) for (type *var = arr_len(arr) ? arr : NULL, *var##_foreach_end = arr_last(arr); var; var == var##_foreach_end ? var = NULL : var++)
#define arr_remove_last(arr) arr_remove_last_((void **)(arr), sizeof **(arr))
+#ifdef TOC_DEBUG
static void arr_test(void) {
int *foos = NULL;
for (int i = 0; i < 1000; i++) {
@@ -155,3 +156,4 @@ static void arr_test(void) {
}
arr_clear(&foos);
}
+#endif