Next: preprocessor nameref special, Previous: preprocessor nameref full, Up: preprocessor nameref [Contents][Index]
It expands into:
local mbfl_a_variable_NAME=DATA_VARNAME_EXPR local -n NAME=$mbfl_a_variable_NAME
Declare a proxy variable NAME aliasing the data variable whose value is the result of evaluating DATA_VARNAME_EXPR.
We can use this macro as follows:
function main () { local VARNAME worker VARNAME mbfl_local_nameref(VAR, $VARNAME) ... } function worker () { mbfl_mandatory_nameref_parameter(RV, 1) mbfl_global_varref(VAR, 123) RV=mbfl_datavar(VAR) } main
Next: preprocessor nameref special, Previous: preprocessor nameref full, Up: preprocessor nameref [Contents][Index]