diff options
Diffstat (limited to 'src/sandbox/sprite.c')
-rw-r--r-- | src/sandbox/sprite.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sandbox/sprite.c b/src/sandbox/sprite.c index 7aafccf..57c6f06 100644 --- a/src/sandbox/sprite.c +++ b/src/sandbox/sprite.c @@ -3,6 +3,7 @@ #error "This code is only for SDL 2+. No backward compatibility with previous SDL versions, sorry." #endif +#include "utils.h" #define MPL_WINDOW_TITLE __FILE__ #define MPL_WINDOW_WIDTH 640 @@ -83,14 +84,6 @@ int main(int argc, char *argv[]) { } -#define mpl_check(expr, fail_code, priority, ...) \ - if (! (expr)) { \ - SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION,priority,__VA_ARGS__); \ - SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION,priority, \ - "-> last SDL error : %s\n", SDL_GetError()); \ - fail_code; \ - } - void my_SDL_init_or_die(char title[], SDL_Rect win_pos, Uint32 init_flags, Uint32 win_flags, Uint32 rend_flags, SDL_Window **win, SDL_Renderer **rend, SDL_RendererInfo *rend_info, SDL_Rect *viewport) { int res, i; |