jeremy-rifkin / cpptrace

Simple, portable, and self-contained stacktrace library for C++11 and newer
MIT License
701 stars 75 forks source link

Use `defined(CPPTRACE_HAS_CXX_EXCEPTION_TYPE)`. #94

Closed waywardmonkeys closed 8 months ago

waywardmonkeys commented 8 months ago

This is set by the build system when it is available and not set when not available (and not set to 1/0 respectively).

The current code can generate a warning when this preprocessor definition is not defined.

waywardmonkeys commented 8 months ago

This happened while I was trying to get this to build at least partially in emscripten where exceptions were disabled by default.