3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

added compiler macro to disable invocation of the debugger upon failure.

This commit is contained in:
Christoph M. Wintersteiger 2016-01-07 15:58:10 +00:00
parent 00f3a1fe81
commit e53b580cb4

View file

@ -44,12 +44,16 @@ bool assertions_enabled();
#define DEBUG_CODE(CODE) ((void) 0)
#endif
#ifdef NO_Z3_DEBUGGER
#define INVOKE_DEBUGGER() exit(ERR_INTERNAL_FATAL)
#else
#ifdef _WINDOWS
#define INVOKE_DEBUGGER() __debugbreak()
#else
void invoke_gdb();
#define INVOKE_DEBUGGER() invoke_gdb()
#endif
#endif
void notify_assertion_violation(const char * file_name, int line, const char * condition);
void enable_debug(const char * tag);