- library initialization done at a central point (library.c)
[strongswan.git] / Source / lib / utils / leak_detective.h
index 1b0b222..13c0d01 100644 (file)
  */
 #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 */