q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=48c79d39f82bf70678e4b19c1bfc362b1a0c9279
commit 48c79d39f82bf70678e4b19c1bfc362b1a0c9279 Author: Daniel Kolesa <[email protected]> Date: Tue Oct 7 15:06:32 2014 +0100 elua: add support for ctor func as last param --- src/bin/elua/modules/lualian.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/elua/modules/lualian.lua b/src/bin/elua/modules/lualian.lua index a8425ef..8929999 100644 --- a/src/bin/elua/modules/lualian.lua +++ b/src/bin/elua/modules/lualian.lua @@ -467,6 +467,11 @@ end end end s:write(table.concat(parnames, ", ")) + if #parnames == 0 then + s:write("__func") + else + s:write(", __func") + end s:write(")\n") -- write ctor body local j = 1 @@ -492,6 +497,7 @@ end s:write(table.concat(fpars, ", ")) s:write(")\n") end + s:write(" if __func then __func() end\n") s:write(" end") if #self.children > 0 then s:write(",\n\n") --
