summaryrefslogtreecommitdiff
path: root/xmake/includes/check_cxxincludes.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_cxxincludes.lua
parent9449c51bf2e709ba7807093a6876cf4eadf9fbac (diff)
rename interp interfaces
Diffstat (limited to 'xmake/includes/check_cxxincludes.lua')
-rw-r--r--xmake/includes/check_cxxincludes.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/includes/check_cxxincludes.lua b/xmake/includes/check_cxxincludes.lua
index 983e50035..4eff5f53e 100644
--- a/xmake/includes/check_cxxincludes.lua
+++ b/xmake/includes/check_cxxincludes.lua
@@ -28,13 +28,13 @@
function check_cxxincludes(definition, includes, opt)
opt = opt or {}
local optname = opt.name or ("__" .. definition)
- save_scope()
+ interp_save_scope()
option(optname)
set_showmenu(false)
add_cxxincludes(includes)
add_defines(definition)
option_end()
- restore_scope()
+ interp_restore_scope()
add_options(optname)
end
@@ -50,7 +50,7 @@ function configvar_check_cxxincludes(definition, includes, 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_cxxincludes(includes)
@@ -58,7 +58,7 @@ function configvar_check_cxxincludes(definition, includes, opt)
set_configvar(defname, defval or 1, {quote = opt.quote})
end
option_end()
- restore_scope()
+ interp_restore_scope()
if opt.default == nil then
add_options(optname)
else