summaryrefslogtreecommitdiff
path: root/bench/bench.h
diff options
context:
space:
mode:
Diffstat (limited to 'bench/bench.h')
-rw-r--r--bench/bench.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bench/bench.h b/bench/bench.h
index ac414ce..b999490 100644
--- a/bench/bench.h
+++ b/bench/bench.h
@@ -2,6 +2,7 @@
#define TINYFF_BENCH_H_
#include <time.h>
+#include <tinyff/result.h>
#define FF_BENCH_MAX_MARKERS 32
@@ -37,8 +38,8 @@ static inline void ff_bench_end(ff_bench *b) {
b->_end = clock();
}
-static inline void ff_bench_mark(ff_bench *b, const char *label) {
- if (b->_mcount >= FF_BENCH_MAX_MARKERS) return;
+static inline ff_result ff_bench_mark(ff_bench *b, const char *label) {
+ if (b->_mcount >= FF_BENCH_MAX_MARKERS) return FF_RESULT_ERROR_OUT_OF_BOUNDS;
ff_bench_marker m;
m.label = label;