From 66bb51fa6148d6910da054bacd4fcbd2fa7b5bab Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 21 Jan 2019 20:44:55 +0100 Subject: Inlined functions and fix debug header --- include/wrapsdl2.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/wrapsdl2.hpp') diff --git a/include/wrapsdl2.hpp b/include/wrapsdl2.hpp index 847ed99..2f28890 100644 --- a/include/wrapsdl2.hpp +++ b/include/wrapsdl2.hpp @@ -9,11 +9,11 @@ namespace wrapsdl2 { void quit(void); namespace util { - constexpr bool sdl_bool(SDL_bool b) { + constexpr inline bool sdl_bool(SDL_bool b) { return b == SDL_TRUE; } - constexpr SDL_bool sdl_bool(bool b) { + constexpr inline SDL_bool sdl_bool(bool b) { return (b) ? SDL_TRUE : SDL_FALSE; } } -- cgit v1.2.1