summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-04-26 15:11:57 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-04-26 15:11:57 (GMT)
commit2d53fcf03522bfc13f0a3817c260576bbe496c7d (patch)
tree2b3113da979629bd37cd5396e9674278ff798ac7 /Source/cmMacroCommand.h
parent7c0844d2f4f98d40bc4bb7be89cc75740506db3c (diff)
downloadCMake-2d53fcf03522bfc13f0a3817c260576bbe496c7d.zip
CMake-2d53fcf03522bfc13f0a3817c260576bbe496c7d.tar.gz
CMake-2d53fcf03522bfc13f0a3817c260576bbe496c7d.tar.bz2
macros now support varargs
Diffstat (limited to 'Source/cmMacroCommand.h')
-rw-r--r--Source/cmMacroCommand.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMacroCommand.h b/Source/cmMacroCommand.h
index c1c0df5..c614588 100644
--- a/Source/cmMacroCommand.h
+++ b/Source/cmMacroCommand.h
@@ -101,7 +101,12 @@ public:
"but before the matching ENDMACRO, are not invoked until the macro "
"is invoked. When it is invoked, the commands recorded in the "
"macro are first modified by replacing formal parameters (${arg1}) with "
- "the arguments passed, and then invoked as normal commands.";
+ "the arguments passed, and then invoked as normal commands. In "
+ "addition to referencing the formal parameters you can reference "
+ "the variable ARGC which will be set to the number of arguments "
+ "passed into the function as well as ARGV0 ARGV1 ARGV2 ... which "
+ "will have the actual values of the arguments passed in. This "
+ "fascilitates creating macros with optional arguments.";
}
cmTypeMacro(cmMacroCommand, cmCommand);