21 #include <ecl/config/ecl.hpp> 42 class ExceptionTracer {
46 int nSize = backtrace(array, 25);
47 char ** symbols = backtrace_symbols(array, nSize);
49 for (
int i = 0; i < nSize; i++) {
50 std::cout << symbols[i] << std::endl;
57 std::cout <<
"f()" << std::endl;
58 throw ExceptionTracer();
64 int main(
int argc,
char **argv) {
66 std::cout <<
"Dude" << std::endl;
75 int main(
int argc,
char **argv) {
77 std::cout <<
"No backtrace support in windows (that I know of yet)." << std::endl;
int main(int argc, char **argv)