> For the complete documentation index, see [llms.txt](https://shiva.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shiva.gitbook.io/project/shiva/modules/shiva-stacktrace.md).

# shiva::stacktrace

This module simply makes a **namespace alias** and some preprocessing mandatory to use [Boost.Stacktrace](https://github.com/boostorg/stacktrace). This module is represented by a cmake interface library that facilitates its handling through other modules.

{% code title="shiva/stacktrace/stacktrace.hpp" %}

```cpp
#ifdef __GNUC__
    #ifndef _GNU_SOURCE
        #define _GNU_SOURCE
    #endif
#endif

#ifdef _MSVC_VER
    #define BOOST_STACKTRACE_USE_WINDBG
#endif

#include <boost/stacktrace.hpp>

namespace shiva
{
    namespace bs = boost::stacktrace;
}
```

{% endcode %}
