... missed a file >_<

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3221 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-06-18 02:51:51 +00:00
parent b04af0e6e9
commit 1c18e742ba
1 changed files with 0 additions and 19 deletions

View File

@ -19,25 +19,6 @@
class IniInterface;
class pxEnumEnd_t { };
const pxEnumEnd_t pxEnumEnd = {};
// [TODO] Add assertion checks to ++/-- operators!
#define ImplementEnumOperators( enumName ) \
static __forceinline GamefixId& operator++( enumName& src ) { src = (enumName)((int)src+1); return src; } \
static __forceinline GamefixId& operator--( enumName& src ) { src = (enumName)((int)src-1); return src; } \
static __forceinline GamefixId operator++( enumName& src, int ) { enumName orig = src; src = (enumName)((int)src+1); return orig; } \
static __forceinline GamefixId operator--( enumName& src, int ) { enumName orig = src; src = (enumName)((int)src-1); return src; } \
\
static __forceinline bool operator<( const enumName& left, const pxEnumEnd_t& ) { return (int)left < enumName##_COUNT; } \
static __forceinline bool operator!=( const enumName& left, const pxEnumEnd_t& ) { return (int)left != enumName##_COUNT; } \
static __forceinline bool operator==( const enumName& left, const pxEnumEnd_t& ) { return (int)left == enumName##_COUNT; } \
\
static __forceinline void EnumAssertOnBounds( enumName id ) { \
pxAssume( ((int)id >= enumName##_FIRST) && ((int)id < enumName##_COUNT ) ); } \
\
extern const wxChar* EnumToString( enumName id )
enum PluginsEnum_t
{
PluginId_GS = 0,