18 #include <SDL2/SDL_error.h>
24 const bool use_sdl_error)
27 return operation +
" Error »" + SDL_GetError() +
"«.\n";
static std::string create_error(const std::string &operation, const bool use_sdl_error)
Contains a basic exception class for SDL operations.
exception(const std::string &operation, const bool use_sdl_error)
Constructor.