summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-28 18:00:05 +1000
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-28 18:00:05 +1000
commit5efda53994d1c876d1f6f0628024091a7b94b943 (patch)
tree7f3077219f88749da20e718cc0ceff8e2616825a /include
parent79592de3bd0e18e0b11327290bf97911d3752d0a (diff)
feat(ctx): Add ff_bench bench field if benchmarking is enabled
Diffstat (limited to 'include')
-rw-r--r--include/tinyff/common.h10
1 files changed, 10 insertions, 0 deletions
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 <stddef.h>
#include <tinyff/stream.h>
+#ifdef USE_BENCH
+
+#include <tinyff/bench.h>
+
+#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);