y3c-stl 0.3.3
Friendly C++ STL wrapper with automatic stacktrace
Loading...
Searching...
No Matches
terminate-direct.cc

‍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 0x000055c23425d175 in func3() at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:4:30
2: #include <exception>
3:
4: void func3() { std::terminate(); }
5: void func2() { func3(); }
6: void func1() { func2(); }
#1 0x000055c23425d182 in func2() at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:5:21
4: void func3() { std::terminate(); }
5: void func2() { func3(); }
6: void func1() { func2(); }
7: int main() {
#2 0x000055c23425d192 in func1() at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:6:21
4: void func3() { std::terminate(); }
5: void func2() { func3(); }
6: void func1() { func2(); }
7: int main() {
8: y3c::link();
#3 0x000055c23425d1a7 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-direct.cc:9:10
7: int main() {
8: y3c::link();
9: func1();
10: }
Definition array.h:8
void link()
Definition terminate.h:167
#include <y3c/wrap>
#include <exception>
void func3() { std::terminate(); }
void func2() { func3(); }
void func1() { func2(); }
int main() {
func1();
}