summaryrefslogtreecommitdiffstats
path: root/wrapsdl2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wrapsdl2.cpp')
-rw-r--r--wrapsdl2.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/wrapsdl2.cpp b/wrapsdl2.cpp
index a0fa624..393bff6 100644
--- a/wrapsdl2.cpp
+++ b/wrapsdl2.cpp
@@ -11,20 +11,16 @@ extern "C" {
bool wsdl2::initialize(void) {
if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) {
-#ifdef WRAPSDL2_EXCEPTIONS
- throw std::runtime_error("failed to initialize sdl video subsystem");
-#endif
+ throw std::runtime_error("failed to initialize SDL video subsystem");
return false;
}
if (SDL_InitSubSystem(SDL_INIT_EVENTS) < 0) {
-#ifdef WRAPSDL2_EXCEPTIONS
- throw std::runtime_error("failed to initialzie sdl events subsystem");
-#endif
+ throw std::runtime_error("failed to initialzie SDL events subsystem");
return false;
}
- npdebug("initialized sdl2");
+ npdebug("initialized SDL2");
return true;
}
@@ -38,7 +34,7 @@ void wsdl2::quit(void) {
SDL_Quit();
- npdebug("deinitialized (quit) sdl2");
+ npdebug("deinitialized (quit) SDL2");
}