summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/genie/src/base/globals.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/genie/src/base/globals.lua')
-rw-r--r--3rdparty/genie/src/base/globals.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/3rdparty/genie/src/base/globals.lua b/3rdparty/genie/src/base/globals.lua
index 5a04172c481..9a5e19c7025 100644
--- a/3rdparty/genie/src/base/globals.lua
+++ b/3rdparty/genie/src/base/globals.lua
@@ -163,18 +163,17 @@
--
--- An extension to type() to identify project object types by reading the
+-- An extended type API to identify project object types by reading the
-- "__type" field from the metatable.
--
- local builtin_type = type
- function type(t)
+ function typex(t)
local mt = getmetatable(t)
if (mt) then
if (mt.__type) then
return mt.__type
end
end
- return builtin_type(t)
+ return type(t)
end