Arch Game Engine  0.2
sdl_check.h
1 #pragma once
2 #include <stdexcept>
3 #include <string>
4 
5 #define SDL_CHECK(x, msg) if (!(x)) \
6  throw std::runtime_error(std::string(msg": ") + SDL_GetError())