From 678464d24c9c5b689788c0ec17854611f127f863 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 28 Sep 2024 20:47:33 -0500 Subject: Compile against release. --- src/sdl_context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sdl_context.cpp') diff --git a/src/sdl_context.cpp b/src/sdl_context.cpp index f52bbe9..7601d72 100644 --- a/src/sdl_context.cpp +++ b/src/sdl_context.cpp @@ -1,4 +1,5 @@ #include "sdl_context.hpp" +#include #include #include @@ -6,6 +7,8 @@ namespace bookmouse { +using fud::assertFail; + SdlContext::SdlContext() { if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) { const auto* lastError = SDL_GetError(); @@ -36,7 +39,7 @@ SdlContext::SdlContext() { // From 2.0.18: Enable native IME. #ifdef SDL_HINT_IME_SHOW_UI auto hintSet = SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); - assert(hintSet == SDL_TRUE); + fudAssert(hintSet == SDL_TRUE); #endif } -- cgit v1.2.3