ug4
|
Meta Programming Functions for Lua Scripts. More...
Functions | |
function util | CreateFancyFunction (arg_def, f) |
Create a function with namend parameters With this function it is easy to create Lua functions with default values for their arguments and defining names for them to circumvent the position dependentness of the arguments. This is especially useful for functions with a lot of arguments. More... | |
Meta Programming Functions for Lua Scripts.
function util CreateFancyFunction | ( | arg_def | , |
f | |||
) |
Create a function with namend parameters With this function it is easy to create Lua functions with default values for their arguments and defining names for them to circumvent the position dependentness of the arguments. This is especially useful for functions with a lot of arguments.
Use as:
[in] | arg_def | table defining the arguments of the function and their default values |
[in] | f | the function itself |
location: /home/runner/work/docs/docs/ug4/ugcore/scripts/util / meta_util.lua :69-82