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