summaryrefslogtreecommitdiff
path: root/iup/srclua5/generator.lua
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 02:26:30 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 02:32:26 +0200
commit7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch)
treeb6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/srclua5/generator.lua
parente9a184546b18cf3b796bd560561f312934004c54 (diff)
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/srclua5/generator.lua')
-rwxr-xr-xiup/srclua5/generator.lua4
1 files changed, 3 insertions, 1 deletions
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..");")