From 5fd2f59d9f30253cb0c64a06a4a305e90b89e3ae Mon Sep 17 00:00:00 2001 From: Jasper Date: Tue, 9 Sep 2025 12:16:26 +0200 Subject: Variadic functions to free matrices/vectors Renamed 'matrix_freen' to 'matrix_free_many1'. Frees a dynamic array of matrices. --- debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'debug.c') 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) -- cgit v1.2.3