mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- use std::runtime_error instead as the constructor on std::exception is a MSVC extension
This commit is contained in:
parent
831cfd5280
commit
7675e7a6dc
1 changed files with 3 additions and 2 deletions
|
@ -38,6 +38,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
#define MAX_ERRORTEXT 1024
|
#define MAX_ERRORTEXT 1024
|
||||||
|
|
||||||
|
@ -80,10 +81,10 @@ protected:
|
||||||
char m_Message[MAX_ERRORTEXT];
|
char m_Message[MAX_ERRORTEXT];
|
||||||
};
|
};
|
||||||
|
|
||||||
class CNoRunExit : public std::exception
|
class CNoRunExit : public std::runtime_error
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CNoRunExit() : std::exception("NoRunExit")
|
CNoRunExit() : std::runtime_error("NoRunExit")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue