vmangos/dep/cpptrace/cmake/has_unwind.cpp
_BLU 28818aabd8
Replace ACE with native IO implementation (#2740)
- Replace ACE with native OS APIs.
- Remove TBB
- Update gSOAP from `2.7.10` (2008) to `2.8.135` (2024)
- Replace `backward.hpp` with `jeremy-rifkin/cpptrace`
2026-01-09 14:48:34 +01:00

14 lines
347 B
C++

#include <cstdint>
#include <unwind.h>
_Unwind_Reason_Code unwind_callback(_Unwind_Context* context, void* arg) {
_Unwind_GetIP(context);
int is_before_instruction = 0;
uintptr_t ip = _Unwind_GetIPInfo(context, &is_before_instruction);
return _URC_END_OF_STACK;
}
int main() {
_Unwind_Backtrace(unwind_callback, nullptr);
}