summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index f09f544fc..72886e0d2 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -820,6 +820,11 @@ function interpreter:mtimes()
return self._PRIVATE._MTIMES
end
+-- get current namespace
+function interpreter:namespace()
+ return self._PRIVATE._NAMESPACE_STR
+end
+
-- get namespaces
function interpreter:namespaces()
local namespaces = self._PRIVATE._NAMESPACES