mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
ucm: macro - make argument names shorter
It seems that the use the macro name as the variable prefix is too large. Use just two underscores as prefix for the macro arguments to make macro definitions more readable. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2389f04541
commit
5f0479762b
2 changed files with 8 additions and 8 deletions
|
|
@ -461,16 +461,16 @@ macro like:
|
|||
|
||||
~~~{.html}
|
||||
DefineMacro.macro1 {
|
||||
Define.a "${var:macro1_arg1}"
|
||||
Define.b "${var:macro1_other}"
|
||||
Define.a "${var:__arg1}"
|
||||
Define.b "${var:__other}"
|
||||
# Device or any other block may be defined here...
|
||||
}
|
||||
~~~
|
||||
|
||||
The arguments in the macro are refered as the variables with the macro
|
||||
name prefix and underscore (*'_'*) delimiter. The configuration block
|
||||
in the DefineMacro subtree is always evaluated (including arguments
|
||||
and variables) at the time of the instantiation.
|
||||
The arguments in the macro are refered as the variables with the double
|
||||
underscore name prefix (like *__variable*). The configuration block in
|
||||
the DefineMacro subtree is always evaluated (including arguments and variables)
|
||||
at the time of the instantiation.
|
||||
|
||||
The macros can be instantiated (expanded) using:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue