summaryrefslogtreecommitdiffstats
path: root/lib/tolua++/src/bin/lua/declaration.lua
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-20 21:23:15 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-20 21:23:15 +0100
commita69a1ef0325c5e472f1dd736f3a14a260d747ad9 (patch)
tree74857f576acc174a9927a910a7095f33faf4a9be /lib/tolua++/src/bin/lua/declaration.lua
parentFixed bugs in patched tolua output (diff)
downloadcuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.tar
cuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.tar.gz
cuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.tar.bz2
cuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.tar.lz
cuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.tar.xz
cuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.tar.zst
cuberite-a69a1ef0325c5e472f1dd736f3a14a260d747ad9.zip
Diffstat (limited to 'lib/tolua++/src/bin/lua/declaration.lua')
-rw-r--r--lib/tolua++/src/bin/lua/declaration.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tolua++/src/bin/lua/declaration.lua b/lib/tolua++/src/bin/lua/declaration.lua
index 5a2adfed9..26ceeba22 100644
--- a/lib/tolua++/src/bin/lua/declaration.lua
+++ b/lib/tolua++/src/bin/lua/declaration.lua
@@ -227,10 +227,10 @@ function classDeclaration:outchecktype (narg)
--else
return '!tolua_istable(tolua_S,'..narg..',0,&tolua_err)'
--end
+ elseif isenumtype(self.type) ~= nil then
+ return '!tolua_is'..self.type..'(tolua_S,'..narg..','..def..',&tolua_err)'
elseif t then
return '!tolua_is'..t..'(tolua_S,'..narg..','..def..',&tolua_err)'
- elseif isenum(self.type) then
- return '!tolua_is'..self.type..'(tolua_S,'..narg..','..def..',&tolua_err)'
else
local is_func = get_is_function(self.type)
if self.ptr == '&' or self.ptr == '' then