diff options
Diffstat (limited to 'xmake/includes/check_cfuncs.lua')
| -rw-r--r-- | xmake/includes/check_cfuncs.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/includes/check_cfuncs.lua b/xmake/includes/check_cfuncs.lua index f7f4a3e25..98f47a4ad 100644 --- a/xmake/includes/check_cfuncs.lua +++ b/xmake/includes/check_cfuncs.lua @@ -33,7 +33,7 @@ -- function check_cfuncs(definition, funcs, opt) opt = opt or {} - local optname = "__" .. (opt.name or definition) + local optname = opt.name or ("__" .. definition) save_scope() option(optname) set_showmenu(false) @@ -76,7 +76,7 @@ end -- function configvar_check_cfuncs(definition, funcs, opt) opt = opt or {} - local optname = "__" .. (opt.name or definition) + local optname = opt.name or ("__" .. definition) local defname, defval = table.unpack(definition:split('=')) save_scope() option(optname) |
