summaryrefslogtreecommitdiff
path: root/Source/cmMacroCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-04-26 11:11:57 -0400
committerKen Martin <ken.martin@kitware.com>2004-04-26 11:11:57 -0400
commit2d53fcf03522bfc13f0a3817c260576bbe496c7d (patch)
tree2b3113da979629bd37cd5396e9674278ff798ac7 /Source/cmMacroCommand.h
parent7c0844d2f4f98d40bc4bb7be89cc75740506db3c (diff)
downloadcmake-2d53fcf03522bfc13f0a3817c260576bbe496c7d.tar.gz
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 c1c0df5e49..c614588b42 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);