mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-01 20:27:24 +00:00
Help: Clarify argument handling for macros
Distinguish from similar documentation of function
This commit is contained in:
committed by
Brad King
parent
2c6c232d71
commit
69456b012a
@@ -55,9 +55,10 @@ all-lowercase names.
|
||||
Arguments
|
||||
^^^^^^^^^
|
||||
|
||||
When a macro 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.
|
||||
When a macro is invoked, first all commands recorded in the macro are
|
||||
modified by replacing formal parameters (``${arg1}``, ...)
|
||||
with the arguments passed. Then all modified commands are invoked as
|
||||
normal commands.
|
||||
|
||||
In addition to referencing the formal parameters you can reference the
|
||||
values ``${ARGC}`` which will be set to the number of arguments passed
|
||||
|
||||
Reference in New Issue
Block a user