summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-08-10 00:04:12 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-08-10 04:57:13 +0200
commit1f864b104a1f64b1c72ab13422070f6ad7cad225 (patch)
treebdf511b4080b9b7085a3f5a0db2101434c05367c /tests
parent9f2c55dab1d966d5a759722b4939f1f2c30e5e5f (diff)
Support custom printing of symbols/choices in expressions
Allow custom output formats for symbols/choices when turning expressions into strings, via a user-supplied callback function (sc_str_fn). This makes things like turning symbols into links in generated documentation and displaying symbol values in the menuconfig interface less hacky to implement. Two new Symbol/Choice.custom_str() functions were added, as passing extra arguments to __str__() is awkward.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions