Skip to content

Commit

Permalink
update namespace string
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Dec 22, 2024
1 parent 4d4ae1a commit 8a6ef06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xmake/core/base/interpreter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,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()
Expand All @@ -1859,6 +1860,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

Expand Down

0 comments on commit 8a6ef06

Please sign in to comment.