From 5efda53994d1c876d1f6f0628024091a7b94b943 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Tue, 28 Apr 2026 18:00:05 +1000 Subject: feat(ctx): Add ff_bench bench field if benchmarking is enabled --- include/tinyff/common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/tinyff/common.h b/include/tinyff/common.h index 653cb6d..370fc8e 100644 --- a/include/tinyff/common.h +++ b/include/tinyff/common.h @@ -8,6 +8,12 @@ #include #include +#ifdef USE_BENCH + +#include + +#endif + // Flags typedef bool ff_flag; @@ -77,6 +83,10 @@ typedef struct { // Allocation ff_allocator allocator; + + #ifdef USE_BENCH + ff_bench bench; + #endif } ff_ctx; ff_ctx* ff_init(ff_allocator* allocator); -- cgit v1.2.3