19 #ifndef TPIE_BACKTRACE
20 #define TPIE_BACKTRACE
22 #include <tpie/config.h>
37 void backtrace(std::ostream & out,
int depth=1024);
44 void __softassert(
const char * expr,
const char * file,
int line);
54 #define softassert_str(x) #x
61 #define softassert(x) {if (!(x)) tpie::__softassert(softassert_str(x), __FILE__, __LINE__);}
66 #endif //TPIE_BACKTRACE
void __softassert(const char *expr, const char *file, int line)
Do not use this directly; use the softassert() macro instead.
void backtrace(std::ostream &out, int depth=1024)
Output a function call backtrace for debugging.