diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:26:30 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:32:26 +0200 |
commit | 7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch) | |
tree | b6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/srclua5/generator.lua | |
parent | e9a184546b18cf3b796bd560561f312934004c54 (diff) |
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/srclua5/generator.lua')
-rwxr-xr-x | iup/srclua5/generator.lua | 4 |
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..");") |