added DISALLOW_COPY_AND_ASSIGN macro

merge-requests/60/head
bunnei 2014-04-05 15:22:11 +07:00
parent 7509a9b21f
commit 925a894c1b
1 changed files with 5 additions and 0 deletions

@ -163,4 +163,9 @@ enum EMUSTATE_CHANGE
EMUSTATE_CHANGE_STOP
};
// This should be used in the private: declarations for a class
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
#endif // _COMMON_H_