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

‍example output:

y3c-stl terminated: exception of type std::string 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 0x00000000000023e5 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/terminate-throw-string.cc:6:30
4: int main(){
5: y3c::link();
6: throw std::string("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 0x00000000000022a4 in _start at /home/runner/work/y3c-stl/y3c-stl/build/examples/y3c-example-terminate-throw-string
Definition array.h:8
#include <y3c/wrap>
#include <string>
int main(){
throw std::string("error");
}
void link()
Definition terminate.h:167