]> git.lizzy.rs Git - nothing.git/blob - src/system/stacktrace.h
Remove dead macros
[nothing.git] / src / system / stacktrace.h
1 #ifndef STACKTRACE_H_
2 #define STACKTRACE_H_
3
4 #ifndef NDEBUG
5 #define trace_assert(condition) (void)((condition) || (__trace_assert(__FILE__, __LINE__, __func__, #condition), 0))
6 #else
7 #define trace_assert(condition) (void)(condition)
8 #endif
9 void __trace_assert(const char *file, int line, const char *function, const char *message);
10
11 void print_stacktrace(void);
12
13 #endif  // STACKTRACE_H_