diff options
| author | ruki <[email protected]> | 2024-12-21 22:49:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-06 18:12:52 +0800 |
| commit | 904e9410660956c149f9bb6dcfc631c2720ac32a (patch) | |
| tree | 94730118de424f4f27b38a07cfb24ac20f9fd339 | |
| parent | e81a234fdcb3542403e03e9db0dc2c182eb81e36 (diff) | |
add namespace stub
| -rw-r--r-- | xmake/core/base/interpreter.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index 71250be6d..95d256851 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -680,6 +680,8 @@ function interpreter.new() instance:api_register(nil, "add_subdirs", interpreter.api_builtin_add_subdirs) instance:api_register(nil, "add_subfiles", interpreter.api_builtin_add_subfiles) instance:api_register(nil, "set_xmakever", interpreter.api_builtin_set_xmakever) + instance:api_register(nil, "namespace", interpreter.api_builtin_namespace) + instance:api_register(nil, "namespace_end",interpreter.api_builtin_namespace_end) -- register the interpreter interfaces instance:api_register(nil, "interp_save_scope", interpreter.api_interp_save_scope) @@ -1844,6 +1846,14 @@ function interpreter:api_builtin_add_subfiles(...) deprecated.add("includes(%s)", "add_subfiles(%s)", table.concat(files, ", "), table.concat(files, ", ")) end +-- the builtin api: namespace() +function interpreter:api_builtin_namespace(...) +end + +-- the builtin api: namespace_end() +function interpreter:api_builtin_namespace_end(...) +end + -- the interpreter api: interp_save_scope() -- save the current scope function interpreter:api_interp_save_scope() |
