From b516f96f375ac975bdc7910543a163e5cc952fb0 Mon Sep 17 00:00:00 2001 From: Mingkai Dong Date: Sat, 18 Dec 2021 00:33:49 +0800 Subject: [PATCH] Fix declaration of ts_toggle_allocation_recording --- lib/src/alloc.c | 2 +- lib/src/alloc.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/alloc.c b/lib/src/alloc.c index 5ffc050c..6f62a777 100644 --- a/lib/src/alloc.c +++ b/lib/src/alloc.c @@ -21,7 +21,7 @@ struct allocator *ts_allocator = &ts_tracking_allocator; #include -static inline bool ts_toggle_allocation_recording(bool value) { +bool ts_toggle_allocation_recording(bool value) { (void)value; return false; } diff --git a/lib/src/alloc.h b/lib/src/alloc.h index 131a8b49..35ba77d2 100644 --- a/lib/src/alloc.h +++ b/lib/src/alloc.h @@ -32,6 +32,8 @@ extern struct allocator *ts_allocator; #define ts_free ts_allocator->free #endif +bool ts_toggle_allocation_recording(bool); + #ifdef __cplusplus } #endif