Added support for stacktrace compiled SRT for apps using the SRT.
[runtime.git] / lib / silcutil / silcruntime.h.in
index a80d383285161d633f3b6e7d7bdcf32eca33e81c..80539dab865499185612f0082d516e24b606ff91 100644 (file)
@@ -51,6 +51,7 @@
    configured/compiled. */
 @__SILC_HAVE_PTHREAD@
 @__SILC_ENABLE_DEBUG@
+@__SILC_ENABLE_STACKTRACE@
 
 /* Types */
 #define SILC_SIZEOF_LONG_LONG @SILC_SIZEOF_LONG_LONG@
@@ -190,6 +191,11 @@ extern "C" {
 #define SILC_DEBUG 1
 #endif /* __SILC_ENABLE_DEBUG */
 
+#ifdef __SILC_ENABLE_STACKTRACE
+#undef SILC_STACKTRACE
+#define SILC_STACKTRACE 1
+#endif /* __SILC_ENABLE_STACKTRACE */
+
 /* SILC Runtime Toolkit includes */
 #include <silcerrno.h>
 #include <silctypes.h>