Merged silc_1_0_branch to trunk.
[silc.git] / lib / silcutil / silcmemory.h
index 8046909cfd7928d681505dfb9591024434ec73bc..149e8c9044d9f72045ccc78dd82818507eefb7ee 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 /* SILC_DIST_TOOLKIT */
+
+#include "stacktrace.h"
+#endif /* SILC_STACKTRACE */
+
 #endif /* SILCMEMORY_H */