diff options
| author | ruki <[email protected]> | 2024-12-22 23:04:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-06 18:12:52 +0800 |
| commit | 3e07f684154dfd9e7d0c9b14c81320e6e4b203cd (patch) | |
| tree | 9972739a4ad968888e739fb5a953351d5f387884 /xmake/core/base/interpreter.lua | |
| parent | 32db8fc2f0f2c560ab803acd4c4394466843c0bd (diff) | |
update namespace string
Diffstat (limited to 'xmake/core/base/interpreter.lua')
| -rw-r--r-- | xmake/core/base/interpreter.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index 716ce3004..c8b087333 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -1854,6 +1854,7 @@ function interpreter:api_builtin_namespace(name, callback) self._NAMESPACE = namespace end table.insert(namespace, name) + self._NAMESPACE_STR = table.concat(namespace, "::") if callback and type(callback) == "function" then callback() self:api_builtin_namespace_end() @@ -1865,6 +1866,7 @@ function interpreter:api_builtin_namespace_end() local namespace = self._NAMESPACE if namespace then table.remove(namespace) + self._NAMESPACE_STR = table.concat(namespace, "::") end end |
