mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
21 lines
301 B
C++
21 lines
301 B
C++
#include "ErrorViewer.h"
|
|
#include "include.h"
|
|
namespace MiniEngine
|
|
{
|
|
void ErrorViewer::fetch()
|
|
{
|
|
str = SDL_GetError();
|
|
}
|
|
|
|
std::string ErrorViewer::getError() const
|
|
{
|
|
return str;
|
|
}
|
|
|
|
const char * ErrorViewer::what() const noexcept
|
|
{
|
|
return str.c_str();
|
|
}
|
|
} /// End of namespace MiniEngine
|
|
|