- Stacktrace generation with failed asserts
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
|
||||
using assert_handler = void (*)(const char *, const char *, int , const char *);
|
||||
|
||||
extern void __assert_callback(const char* expression, const char* file, int line, const char* function);
|
||||
extern void __assert_callback(const char* expression, const char* file, int line, const char* function, const char* description);
|
||||
|
||||
void __assert_impl(const char* expression, const char* file, int line, const char* function)
|
||||
void __assert_impl(const char* expression, const char* file, int line, const char* function, const char* description)
|
||||
{
|
||||
__assert_callback(expression, file, line, function);
|
||||
__assert_callback(expression, file, line, function, description);
|
||||
|
||||
#ifndef NDEBUG
|
||||
abort();
|
||||
::abort();
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user