From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/srclua5/generator.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'iup/srclua5/generator.lua') diff --git a/iup/srclua5/generator.lua b/iup/srclua5/generator.lua index efbab5a..ef12534 100755 --- a/iup/srclua5/generator.lua +++ b/iup/srclua5/generator.lua @@ -126,7 +126,9 @@ function write_callbacks(o, c) io.write(' lua_State *L = iuplua_call_start(self, "', i, '");') aux.n = 0 string.gsub(s, "(.)", function(p) - if p == "n" or p == "f" or p == "d" or p == "c" then + if p == "n" or p == "c" then + io.write("\n lua_pushinteger(L, p"..aux.n..");") + elseif p == "f" or p == "d" then io.write("\n lua_pushnumber(L, p"..aux.n..");") elseif p == "s" then io.write("\n lua_pushstring(L, p"..aux.n..");") -- cgit v1.2.3