MiniEngine/SDLWrapper/ErrorViewer.cpp

19 lines
287 B
C++
Raw Normal View History

2017-06-18 20:37:45 +08:00
#include "ErrorViewer.h"
#include "include.h"
#include "begin_code.h"
void ErrorViewer::fetch()
{
str = SDL_GetError();
}
std::string ErrorViewer::getError() const
{
return str;
}
const char * ErrorViewer::what() const throw()
{
return str.c_str();
}
#include "end_code.h"