summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-10-21 16:09:24 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-10-21 17:28:31 +0200
commit9a4127a1d5eeac122cb478b0e03d42c9698c41be (patch)
treef31f04aba7944545ac288c10012c3cda5aec6b42 /setup.py
parentd23accda70935ddbf6d01f3c0043f17bffad3706 (diff)
Allow programmatically expanding preprocessor functions with args
Add a Variable.expanded_value_w_args() function for expanding a preprocessor function with particular arguments. This is what expanded_value should have been, because expanded_value_w_args() is more general (expanded_value corresponds to zero arguments). Keep expanded_value for backwards compatibility though. Also add a simple __repr__() to Variable. It could show the expanded value, but that might mean calling shell functions or user-defined functions as a side effect (possibly with missing arguments). Not sure that's a good idea, so just show the unexpanded value.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions