summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elua/modules/lualian.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/elua/modules/lualian.lua b/src/bin/elua/modules/lualian.lua
index ccf30dff34..8d77094056 100644
--- a/src/bin/elua/modules/lualian.lua
+++ b/src/bin/elua/modules/lualian.lua
@@ -233,9 +233,13 @@ local Method = Node:clone {
233 233
234 gen_ffi = function(self, s) 234 gen_ffi = function(self, s)
235 local proto = self:gen_proto() 235 local proto = self:gen_proto()
236 local ret = proto.ret_type
237 if ret:match("[a-zA-Z0-9_]$") then
238 ret = ret .. " "
239 end
236 local cproto = { 240 local cproto = {
237 " ", proto.ret_type, " ", proto.full_name, "(", 241 " ", ret, proto.full_name, "(", table.concat(proto.cargs, ", "),
238 table.concat(proto.cargs, ", "), ");\n" 242 ");\n"
239 } 243 }
240 s:write(table.concat(cproto)) 244 s:write(table.concat(cproto))
241 end 245 end