|
|
@ -38,8 +38,18 @@ namespace DFHack
|
|
|
|
* our wrapper for the C++ exception. used to differentiate
|
|
|
|
* our wrapper for the C++ exception. used to differentiate
|
|
|
|
* the whole array of DFHack exceptions from the rest
|
|
|
|
* the whole array of DFHack exceptions from the rest
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class DFHACK_EXPORT All : public std::exception{};
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
|
|
|
#pragma push
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* C4275 is - The warning officially is non dll-interface class 'std::exception' used as base for
|
|
|
|
|
|
|
|
* dll-interface class
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* Basically, its saying that you might have an ABI problem if you mismatch compilers. We don't
|
|
|
|
|
|
|
|
* care since we build all of DFhack at once against whatever Toady is using
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma warning(disable: 4275)
|
|
|
|
|
|
|
|
class DFHACK_EXPORT All : public std::exception{};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
class DFHACK_EXPORT NullPointer : public All {
|
|
|
|
class DFHACK_EXPORT NullPointer : public All {
|
|
|
|
const char *varname_;
|
|
|
|
const char *varname_;
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|