1
0
forked from 0ad/0ad
0ad/source/ps/Errors.cpp

25 lines
920 B
C++
Executable File

// Auto-generated by errorlist.pl - do not edit
#include "precompiled.h"
#include "Errors.h"
// Slightly hacky section to redeclare things that are declared
// elsewhere - trust the compiler to handle them identically
class PSERROR_Xeromyces : public PSERROR {};
class PSERROR_Xeromyces_XMLOpenFailed : public PSERROR_Xeromyces { public: PSERROR_Xeromyces_XMLOpenFailed(); };
class PSERROR_Xeromyces_XMLParseError : public PSERROR_Xeromyces { public: PSERROR_Xeromyces_XMLParseError(); };
// The relevant bits of this file:
PSERROR_Xeromyces_XMLOpenFailed::PSERROR_Xeromyces_XMLOpenFailed() { magic=0x50534552; code=0; }
PSERROR_Xeromyces_XMLParseError::PSERROR_Xeromyces_XMLParseError() { magic=0x50534552; code=1; }
const wchar_t* GetErrorString(int code)
{
switch (code)
{
case 0: return L"Xeromyces_XMLOpenFailed"; break;
case 1: return L"Xeromyces_XMLParseError"; break;
}
return L"Unrecognised error";
}