diff options
Diffstat (limited to 'src/support/debug.h')
-rw-r--r-- | src/support/debug.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/support/debug.h b/src/support/debug.h index 960082d1a..edb19ebda 100644 --- a/src/support/debug.h +++ b/src/support/debug.h @@ -44,14 +44,20 @@ void setDebugEnabled(const char* types); #else +// We have an option to build with assertions disabled +// BYN_ASSERTIONS_ENABLED=OFF, but we currently don't recommend using and we +// don't test with it. +#error "binaryen is currently designed to be built with assertions enabled." +#error "remove these #errors if you want to build without them anyway." + #define BYN_DEBUG_WITH_TYPE(...) \ do { \ } while (false) #define BYN_TRACE_WITH_TYPE(...) \ do { \ } while (false) -#define isDebugEnabled() (false) -#define setDebugEnabled() +#define isDebugEnabled(type) (false) +#define setDebugEnabled(types) #endif |