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

‍example output:

y3c-stl terminated: exception of type std::exception thrown, but that's not from y3c-stl.
"error"
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 0x0000000000001233 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-throw-exception.cc:6:37
4: int main(){
5: y3c::link();
6: throw std::runtime_error("error");
7: }
#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 0x0000000000001124 in _start at /home/runner/work/y3c-stl/y3c-stl/build/examples/y3c-example-terminate-throw-exception
Definition array.h:8
#include <y3c/wrap>
#include <stdexcept>
int main(){
throw std::runtime_error("error");
}
void link()
Definition terminate.h:167