1 2 3 4 5 6 7 8 9
#pragma once #include <SDL2/SDL_error.h> #include <SDL2/SDL_log.h> static int sdl_error(int rv) { SDL_Log("%s\n", SDL_GetError()); return rv; }