y3c-stl 0.4.0
Friendly C++ STL wrapper with automatic stacktrace
Loading...
Searching...
No Matches
terminate-throw-any.cc

‍example output:

y3c-stl terminated: unsupported type exception thrown, but that's not from y3c-stl.
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 0x00000000000ae4d7 in __cxa_throw at /lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00000000000011bc in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-throw-any.cc:5:11
3: int main(){
4: y3c::link();
5: throw 1000;
6: }
#3 0x0000000000029d8f at /lib/x86_64-linux-gnu/libc.so.6
#4 0x0000000000029e3f in __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6
#5 0x00000000000010c4 in _start at /home/runner/work/y3c-stl/y3c-stl/build/examples/y3c-example-terminate-throw-any
Definition array.h:8
#include <y3c/wrap>
int main(){
throw 1000;
}
void link()
Definition terminate.h:167