From 925a894c1b04935772bc3eea904e81c8bef7df13 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 5 Apr 2014 15:22:11 -0400 Subject: added DISALLOW_COPY_AND_ASSIGN macro --- src/common/src/common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/src/common.h b/src/common/src/common.h index 1ca34e467..3b71d9b3d 100644 --- a/src/common/src/common.h +++ b/src/common/src/common.h @@ -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_ -- cgit v1.2.3