aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-18 15:37:17 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-18 15:38:42 +0100
commita37b06d7354c5cfec0e88dc22a8a5d784551f1b3 (patch)
tree02fdd685e1a9769902eabba107f571cdbca8fbe2 /include
parent41b85d5597119fa8105dc0641ffe5cd1bbae39b2 (diff)
add '--enable-debug' configure option to build with EMIT_ASN_DEBUG
... which in turn causes all the ASN_DEBUG() to be turned into fprintf(stderr, ...) statements, once the user application decides to set 'asn_debug = 1' somewhere in its code. The next step would be to make _ASN_DECODE_FAILED / _ASN_ENCODE_FAILED no longer depend on ASN_DEBUG (which it currently does)
Diffstat (limited to 'include')
-rw-r--r--include/asn1c/asn_system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asn1c/asn_system.h b/include/asn1c/asn_system.h
index e420ad2..fe8a377 100644
--- a/include/asn1c/asn_system.h
+++ b/include/asn1c/asn_system.h
@@ -21,6 +21,8 @@
#include <stdarg.h> /* For va_start */
#include <stddef.h> /* for offsetof and ptrdiff_t */
+extern int asn_debug;
+
#ifdef _WIN32
#include <malloc.h>