Fixed topic annoucning, server signoff handling, added -D option,
[silc.git] / lib / silcutil / silcmemory.h
index 8046909cfd7928d681505dfb9591024434ec73bc..6c213f7a4b1ce73836b8605457e56dfb383afec3 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-/****h* silcutil/SilcMemoryAPI
+/****h* silcutil/SILC Memory Interface
  *
  * DESCRIPTION
  *
@@ -35,6 +35,8 @@
 
 /* Prototypes */
 
+#ifndef SILC_STACKTRACE
+
 /****f* silcutil/SilcMemoryAPI/silc_malloc
  *
  * SYNOPSIS
@@ -117,4 +119,12 @@ void silc_free(void *ptr);
  ***/
 void *silc_memdup(const void *ptr, size_t size);
 
+#else
+#ifndef SILC_DIST_TOOLKIT
+#error "The stack trace is not supported in this distribution"
+#endif
+
+#include "stacktrace.h"
+#endif /* SILC_STACKTRACE */
+
 #endif /* SILCMEMORY_H */