|
|
@ -38,19 +38,19 @@ 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
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma push
|
|
|
|
#pragma push
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* C4275 is - The warning officially is non dll-interface class 'std::exception' used as base for
|
|
|
|
* C4275 is - The warning officially is non dll-interface class 'std::exception' used as base for
|
|
|
|
* dll-interface class
|
|
|
|
* dll-interface class
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Basically, its saying that you might have an ABI problem if you mismatch compilers. We don't
|
|
|
|
* 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
|
|
|
|
* care since we build all of DFhack at once against whatever Toady is using
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#pragma warning(disable: 4275)
|
|
|
|
#pragma warning(disable: 4275)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
class DFHACK_EXPORT All : public std::exception{};
|
|
|
|
class DFHACK_EXPORT All : public std::exception{};
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma pop
|
|
|
|
#pragma pop
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
class DFHACK_EXPORT NullPointer : public All {
|
|
|
|
class DFHACK_EXPORT NullPointer : public All {
|
|
|
|