Skip to content

Commit a8b7a91

Browse files
committed
Fix non-dbghelp backends
1 parent ce93dc7 commit a8b7a91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/from_current.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,11 @@ CPPTRACE_BEGIN_NAMESPACE
614614
CPPTRACE_FORCE_NO_INLINE
615615
void maybe_collect_trace(EXCEPTION_POINTERS* exception_ptrs, const std::type_info& type_info) {
616616
if(matches_exception(exception_ptrs, type_info)) {
617+
#ifdef CPPTRACE_UNWIND_WITH_DBGHELP
617618
collect_current_trace(2, exception_ptrs);
619+
#else
620+
collect_current_trace(2);
621+
#endif
618622
}
619623
}
620624
#else

0 commit comments

Comments
 (0)