17 #include <SDL_error.h>
24 const bool use_sdl_error)
27 return operation +
" Error »" + SDL_GetError() +
"«.\n";
34 const bool fetch_error_msg)
36 if (fetch_error_msg) {
50 tgpu_exception::tgpu_exception(
const std::string &op,
51 const bool fetch_error_msg)
52 :
game::
error(create_gpu_error(op, fetch_error_msg))
static l_noret error(LoadState *S, const char *why)
GPU_ErrorObject GPU_PopErrorCode(void)
static std::string create_error(const std::string &operation, const bool use_sdl_error)
Contains a basic exception class for SDL operations.
texception(const std::string &operation, const bool use_sdl_error)
Constructor.
GLsizei const GLcharARB ** string