Skip to content

Febbe/stacktrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbbe::stacktrace

This library is a backport of the c++23 stacktrace library for c++17. It is usefull, when you can't use c++23 or if your awailable compiler does not support it yet.

Usage

include(FetchContent)
FetchContent_Declare(
    fbbe_stacktrace
    GIT_REPOSITORY https://github.com/Febbe/stacktrace.git
    GIT_TAG        main
)
FetchContent_MakeAvailable(fbbe_stacktrace)

target_link_libraries(my_target PRIVATE fbbe::stacktrace)

Compatibility

To the c++23 stacktrace library

Beside the spaceship operator (three way comparison) the library is fully compatible to std::stacktrace from the c++23 header.

Just replace std::stacktrace with fbbe::stacktrace.

As soon you switch to c++23 with an implemented stacktrace library, fbbe::stacktrace falls back to std::stacktrace. This will make it easy, to replace it later.

Compilers

Compiler Version Status
GCC 9 FAIL
GCC 10 OK
Clang 11 UNKNOWN
Clang 12 OK
MSVC 19.28 UNKNOWN
MSVC 19.29 OK
MSVC 19.30 OK
AppleClang 13 UNKNOWN
AppleClang 14 OK

About

A backport to c++17 for c++23 stacktrace library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published