summaryrefslogtreecommitdiffstats
path: root/lib/tolua++/src/bin/lua/function.lua
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-02 15:04:17 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-02 15:04:17 +0200
commit298c0b409ac01f17968ed3ff5dd6e2e901627e04 (patch)
tree0d9eb2c8c7e8b02a0028b543f98876b52061da87 /lib/tolua++/src/bin/lua/function.lua
parentAdded override specifier to functions declared in cWorld (diff)
downloadcuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar
cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.gz
cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.bz2
cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.lz
cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.xz
cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.zst
cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.zip
Diffstat (limited to 'lib/tolua++/src/bin/lua/function.lua')
-rw-r--r--lib/tolua++/src/bin/lua/function.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/tolua++/src/bin/lua/function.lua b/lib/tolua++/src/bin/lua/function.lua
index 3b6b53c5e..9338e0fbc 100644
--- a/lib/tolua++/src/bin/lua/function.lua
+++ b/lib/tolua++/src/bin/lua/function.lua
@@ -458,9 +458,8 @@ end
-- Internal constructor
function _Function (t)
setmetatable(t,classFunction)
-
if t.const ~= 'const' and t.const ~= '' then
- error("#invalid 'const' specification")
+ error("#invalid 'const' specification: " .. t.const)
end
append(t)
@@ -489,7 +488,6 @@ end
function Function (d,a,c)
--local t = split(strsub(a,2,-2),',') -- eliminate braces
--local t = split_params(strsub(a,2,-2))
-
if not flags['W'] and string.find(a, "%.%.%.%s*%)") then
warning("Functions with variable arguments (`...') are not supported. Ignoring "..d..a..c)