summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-03 19:28:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-03 19:53:13 (GMT)
commit4bef02e7aa60c48df923d778ae33438e573ec7bc (patch)
tree75ca33190733919d9e5d7431820bb97c3604f25e /Source/cmStandardIncludes.h
parentff710539ab31ba4b6f3b376621dd9fbd56e1b558 (diff)
downloadCMake-4bef02e7aa60c48df923d778ae33438e573ec7bc.zip
CMake-4bef02e7aa60c48df923d778ae33438e573ec7bc.tar.gz
CMake-4bef02e7aa60c48df923d778ae33438e573ec7bc.tar.bz2
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.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index ed8efcc..a544894 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -378,7 +378,8 @@ static thisClass* SafeDownCast(cmObject *c) \
return static_cast<thisClass *>(c); \
} \
return 0;\
-}
+} \
+class cmTypeMacro_UseTrailingSemicolon
inline bool cmHasLiteralPrefixImpl(const std::string &str1,
const char *str2,