Replace MSVC __debugbreak with cross-compiler DEBUG_BREAK macro. (#1540)
This commit is contained in:
1 parent
0625db38f5
commit
cbdb92d045
73 files changed
+117
-129
No files matched your search
@@ -1619,7 +1619,7 @@ RADDEFSTART
|
||||
#define RR_BREAK() __builtin_trap()
|
||||
#define RR_CACHE_LINE_SIZE 32
|
||||
#elif defined(__RADXENON__)
|
||||
#define RR_BREAK() __debugbreak()
|
||||
#define RR_BREAK() DEBUG_BREAK()
|
||||
#define RR_CACHE_LINE_SIZE 128
|
||||
#elif defined(__RADANDROID__)
|
||||
#define RR_BREAK() __builtin_trap()
|
||||
|
||||
@@ -24,7 +24,7 @@ void ConsoleUIController::init(ID3D11Device *dev, ID3D11DeviceContext *ctx, ID3D
|
||||
{
|
||||
app.DebugPrintf("Failed to initialise GDraw!\n");
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
__debugbreak();
|
||||
DEBUG_BREAK();
|
||||
#endif
|
||||
app.FatalLoadError();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user