Use the capwap_exit instead of exit

This commit is contained in:
vemax78 2015-01-24 13:17:47 +01:00
parent 8042cd2e04
commit 729ed4f768
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#ifdef DEBUG
#define ASSERT(expr) if (!(expr)) { capwap_logging_fatal("Assertion failed \'%s\': %s(%d)", #expr, __FILE__, __LINE__); exit(1); }
#define ASSERT(expr) if (!(expr)) { capwap_logging_fatal("Assertion failed \'%s\': %s(%d)", #expr, __FILE__, __LINE__); capwap_exit(CAPWAP_ASSERT_CONDITION); }
/* Custom memory management */
#define capwap_alloc(x) capwap_alloc_debug(x, __FILE__, __LINE__)