1 #include "pybind11/pybind11.h"
5 namespace py = pybind11;
11 py::module mod(
"backtrace");
18 mod.def(
"isEnabled", [&backtrace]() ->
bool {
return backtrace.
isEnabled(); });
PYBIND11_PLUGIN(backtrace)
Singleton, enables automatic backtraces on the following signals:
bool const isEnabled() const noexcept
static Backtrace & get() noexcept
Get a reference to the singleton.