summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorJasper2025-09-09 12:16:26 +0200
committerJasper2025-09-09 12:16:26 +0200
commit5fd2f59d9f30253cb0c64a06a4a305e90b89e3ae (patch)
tree1fa55449eb91489a428eeb48307d7d314b208860 /debug.c
parent29f92b1c7dad80b40654f561fbe82f5c1d9df7b2 (diff)
Variadic functions to free matrices/vectors
Renamed 'matrix_freen' to 'matrix_free_many1'. Frees a dynamic array of matrices.
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/debug.c b/debug.c
index 0dbc2b9..22a718b 100644
--- a/debug.c
+++ b/debug.c
@@ -49,8 +49,7 @@
TIMER(&_samples[i], \
func(_A, _B, ##__VA_ARGS__) \
); \
- matrix_free(_A); \
- matrix_free(_B); \
+ matrix_free_many(2, _A, _B); \
} \
print_bm(#func, (details_str), _samples, MATRIX_BM_N_SAMPLES); \
} while(0)