mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
cmTypeMacro: Add a class to eat the semicolon following the macro use.
Apply the same workaround to the cmCPackTypeMacro. Additionally change that macro to not use 'class' as a macro parameter.
This commit is contained in:
@@ -22,9 +22,10 @@
|
||||
// Forward declarations are insufficient since we use them in
|
||||
// std::map data members below...
|
||||
|
||||
#define cmCPackTypeMacro(class, superclass) \
|
||||
cmTypeMacro(class, superclass); \
|
||||
static cmCPackGenerator* CreateGenerator() { return new class; }
|
||||
#define cmCPackTypeMacro(klass, superclass) \
|
||||
cmTypeMacro(klass, superclass); \
|
||||
static cmCPackGenerator* CreateGenerator() { return new klass; } \
|
||||
class cmCPackTypeMacro_UseTrailingSemicolon
|
||||
|
||||
#define cmCPackLogger(logType, msg) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user