diff options
author | Corey Farrell <git@cfware.com> | 2016-10-07 18:32:16 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-10-07 18:32:16 -0400 |
commit | dd873bcada4e257ba8e8b497b1a36036b09f5635 (patch) | |
tree | 363eb368b634bd78ce525a4d1f76c5448b9ef797 /include | |
parent | f166681c121265b92a9091bdafab9980c086b9d2 (diff) |
astobj2: Add backtrace to log_bad_ao2.
* Compile __ast_assert_failed unconditionally.
* Use __ast_assert_failed to log messages from log_bad_ao2
* Remove calls to ast_assert(0) that happen after log_bad_ao2 was run.
Change-Id: I48f1af44b2718ad74a421ff75cb6397b924a9751
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index c3df4779f..a504a5da1 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -849,8 +849,10 @@ int ast_parse_digest(const char *digest, struct ast_http_digest *d, int request, #define DO_CRASH_NORETURN #endif +void DO_CRASH_NORETURN __ast_assert_failed(int condition, const char *condition_str, + const char *file, int line, const char *function); + #ifdef AST_DEVMODE -void DO_CRASH_NORETURN __ast_assert_failed(int condition, const char *condition_str, const char *file, int line, const char *function); #define ast_assert(a) _ast_assert(a, # a, __FILE__, __LINE__, __PRETTY_FUNCTION__) static void force_inline _ast_assert(int condition, const char *condition_str, const char *file, int line, const char *function) { |