raze-gles/tools/re2c/src/util/forbid_copy.h
Christoph Oelckers 8c95516224 - added compile tools from GZDoom repo:
- updaterevision for automated revision string generation
- re2c as a prerequisite to use sc_man in the future
- zipdir to automatically generate an engine resource file.
2019-09-22 08:52:30 +02:00

11 lines
294 B
C

#ifndef _RE2C_UTIL_FORBID_COPY_
#define _RE2C_UTIL_FORBID_COPY_
// must be used at the end of class definition
// (since this macro changes scope to private)
#define FORBID_COPY(type) \
private: \
type (const type &); \
type & operator = (const type &)
#endif // _RE2C_UTIL_FORBID_COPY_