diff options
Diffstat (limited to 'client/debug.h')
-rw-r--r-- | client/debug.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/debug.h b/client/debug.h index 1c6f6a42..ce8fc98e 100644 --- a/client/debug.h +++ b/client/debug.h @@ -92,6 +92,11 @@ LOG4CPP_LOGGER("spice") ON_PANIC(); \ } +#define PANIC_ON(x) if ((x)) { \ + LOG(FATAL, "%s panic %s\n", __FUNCTION__, #x); \ + ON_PANIC(); \ +} + #define DBGLEVEL 1000 #define DBG(level, format, ...) { \ |