... | ... | @@ -19,7 +19,7 @@ below. |
|
|
|
|
|
The PARSE_ARGUMENTS macro, defined below, can be used by other macros
|
|
|
to parse arguments defined in this way. Note that this macro relies on
|
|
|
the [LIST_CONTAINS](contrib/macros/ListOperations#LIST_CONTAINS "wikilink")
|
|
|
the [LIST_CONTAINS](contrib/macros/ListOperations#list_contains "wikilink")
|
|
|
command.
|
|
|
|
|
|
MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
|
... | ... | @@ -173,7 +173,7 @@ for a macro to parse. Of course, `PARSE_ARGUMENTS` will do it for us. |
|
|
Here is a vacuous implementation of `ADD_PLUGIN`. It uses
|
|
|
`PARSE_ARGUMENTS` to parse the argument specification above, and then
|
|
|
simply prints out each argument list and option. Note that this example
|
|
|
uses the [CAR and CDR](contrib/macros/ListOperations#CAR_and_CDR "wikilink")
|
|
|
uses the [CAR and CDR](contrib/macros/ListOperations#car-and-cdr "wikilink")
|
|
|
macros.
|
|
|
|
|
|
MACRO(ADD_PLUGIN)
|
... | ... | |