Fix declaration of ts_toggle_allocation_recording

This commit is contained in:
Mingkai Dong 2021-12-18 00:33:49 +08:00
parent e742186c25
commit b516f96f37
2 changed files with 3 additions and 1 deletions

View file

@ -21,7 +21,7 @@ struct allocator *ts_allocator = &ts_tracking_allocator;
#include <stdlib.h>
static inline bool ts_toggle_allocation_recording(bool value) {
bool ts_toggle_allocation_recording(bool value) {
(void)value;
return false;
}

View file

@ -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