y3c-stl 0.4.0
Friendly C++ STL wrapper with automatic stacktrace
|
example output:
y3c-stl terminated: terminate() called, but that's not from y3c-stl and current_exception information is empty.The following stack trace may be inaccurate.Stack trace (most recent call first):#0 0x00000000000ae276 in std::terminate() at /lib/x86_64-linux-gnu/libstdc++.so.6#1 0x0000000000001175 in func3() at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:4:302: #include <exception>3:4: void func3() { std::terminate(); }5: void func2() { func3(); }6: void func1() { func2(); }#2 0x0000000000001182 in func2() at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:5:214: void func3() { std::terminate(); }5: void func2() { func3(); }6: void func1() { func2(); }7: int main() {#3 0x0000000000001192 in func1() at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:6:214: void func3() { std::terminate(); }5: void func2() { func3(); }6: void func1() { func2(); }7: int main() {8: y3c::link();#4 0x00000000000011a7 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:9:107: int main() {8: y3c::link();9: func1();10: }#5 0x0000000000029d8f at /lib/x86_64-linux-gnu/libc.so.6#6 0x0000000000029e3f in __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6#7 0x00000000000010a4 in _start at /home/runner/work/y3c-stl/y3c-stl/build/examples/y3c-example-terminate-directDefinition array.h:8