mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Replace _IRR_DEBUG_BREAK_IF
with assertions
This commit is contained in:
parent
2f464843cb
commit
5f1ff453c9
22 changed files with 96 additions and 91 deletions
|
@ -16,11 +16,13 @@
|
|||
#include "irrString.h"
|
||||
#include "Keycodes.h"
|
||||
#include "COSOperator.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include "SIrrCreationParameters.h"
|
||||
#include <SDL_video.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cassert>
|
||||
|
||||
#ifdef _IRR_EMSCRIPTEN_PLATFORM_
|
||||
#include <emscripten.h>
|
||||
#endif
|
||||
|
@ -599,7 +601,7 @@ bool CIrrDeviceSDL::createWindowWithContext()
|
|||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
|
||||
break;
|
||||
default:
|
||||
_IRR_DEBUG_BREAK_IF(1);
|
||||
assert(false);
|
||||
}
|
||||
|
||||
if (CreationParams.DriverDebug) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue