aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/utils/leak_detective.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/lib/utils/leak_detective.h')
-rw-r--r--Source/lib/utils/leak_detective.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/lib/utils/leak_detective.h b/Source/lib/utils/leak_detective.h
index 1b0b222bc..13c0d01ab 100644
--- a/Source/lib/utils/leak_detective.h
+++ b/Source/lib/utils/leak_detective.h
@@ -30,8 +30,20 @@
*/
#define STACK_FRAMES_COUNT 30
+/**
+ * Initialize leak detective, activates it
+ */
+void leak_detective_init();
+
+/**
+ * Cleanup leak detective, deactivates it
+ */
+void leak_detective_cleanup();
+#else /* !LEAK_DETECTIVE */
+#define leak_detective_init() {}
+#define leak_detective_cleanup() {}
#endif /* LEAK_DETECTIVE */