mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix CATCH_BREAK_INTO_DEBUGGER that by default surrounds in a lambda
* This is a lambda in upstream catch to avoid some warning, but that means that when the debugbreak happens it's in the wrong stack frame (though at least on the right line). Fortunately we can override it with a useful definition.
This commit is contained in:
Vendored
+7
@@ -29,6 +29,13 @@
|
||||
#define CATCH_CONFIG_FORCE_FALLBACK_STRINGIFIER
|
||||
#define CATCH_CONFIG_INLINE_DEBUG_BREAK
|
||||
|
||||
// define the debugbreak to not be in a lambda, so that we get the right stack frame!
|
||||
#define CATCH_BREAK_INTO_DEBUGGER() \
|
||||
if(Catch::isDebuggerActive()) \
|
||||
{ \
|
||||
CATCH_TRAP(); \
|
||||
}
|
||||
|
||||
#include "api/replay/rdcstr.h"
|
||||
#include "api/replay/stringise.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user