summaryrefslogtreecommitdiff
path: root/src/til_args.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-05 11:14:51 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-05 11:17:51 -0700
commit287ddfc25ee60955e2bfc8ba8193309747639f4f (patch)
treea7e043ffa579d78c6152161da5826faf6bf79ea2 /src/til_args.c
parent1a6210be32d6b96483f595e30ad3ae1ef5ebd58b (diff)
til_builtins: add "none" builtin
Sometimes nested modules are optional, in those cases I've usually been using the "none" module name to indicate this and the ad-hoc setup stuff can easily bypass module setup on that. This commit is a step towards having a "none" builtin that provides a til_module_t.setup() which succeeds but only produces a NULL res_setup when asked to finalize. So if callers just handle a successful finalize case that writes NULL at res_setup equivalent to "disabled", this all Just Works. Currently that's not an expected thing, but future commits will bring everything else on the same page. For callers who want to require the module and not offer "none", they can just put "none" in the explicit exclusions list passed to til_module_setup_full().
Diffstat (limited to 'src/til_args.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved