summaryrefslogtreecommitdiff
path: root/xmake/includes/check_csnippets.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-12 22:46:20 +0800
committerruki <[email protected]>2023-10-12 22:46:20 +0800
commit09ad995e7113f2273b5e441905a914198e23927b (patch)
tree0b88d1b20bfbfda75aa52d0ec26ae2f6f2ad86dd /xmake/includes/check_csnippets.lua
parent9449c51bf2e709ba7807093a6876cf4eadf9fbac (diff)
rename interp interfaces
Diffstat (limited to 'xmake/includes/check_csnippets.lua')
-rw-r--r--xmake/includes/check_csnippets.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/includes/check_csnippets.lua b/xmake/includes/check_csnippets.lua
index 57f232d45..2e22c3220 100644
--- a/xmake/includes/check_csnippets.lua
+++ b/xmake/includes/check_csnippets.lua
@@ -29,7 +29,7 @@
function check_csnippets(definition, snippets, opt)
opt = opt or {}
local optname = opt.name or ("__" .. definition)
- save_scope()
+ interp_save_scope()
option(optname)
set_showmenu(false)
add_csnippets(definition, snippets, {tryrun = opt.tryrun, output = opt.output})
@@ -71,7 +71,7 @@ function check_csnippets(definition, snippets, opt)
end)
end
option_end()
- restore_scope()
+ interp_restore_scope()
add_options(optname)
end
@@ -89,7 +89,7 @@ function configvar_check_csnippets(definition, snippets, opt)
opt = opt or {}
local optname = opt.name or ("__" .. definition)
local defname, defval = table.unpack(definition:split('='))
- save_scope()
+ interp_save_scope()
option(optname)
set_showmenu(false)
add_csnippets(definition, snippets, {tryrun = opt.tryrun, output = opt.output})
@@ -125,7 +125,7 @@ function configvar_check_csnippets(definition, snippets, opt)
end)
end
option_end()
- restore_scope()
+ interp_restore_scope()
if opt.default == nil then
add_options(optname)
else