Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2009, 4:01:42 PM (15 years ago)
Author:
rgrieder
Message:

Tolua update to v1.0.93 is not working properly and I would not know how to fix it. I have created a patch however, just in case we need it after all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/tolua/lua/array.lua

    r3127 r3138  
    102102    -- return value
    103103    local t,ct = isbasic(self.type)
    104     local push_func = get_push_function(t)
    105104    if t then
    106105        output(' tolua_push'..t..'(tolua_S,(',ct,')'..self:getvalue(class,static)..');')
     
    108107        t = self.type
    109108        if self.ptr == '&' or self.ptr == '' then
    110             output(' ',push_func,'(tolua_S,(void*)&'..self:getvalue(class,static)..',"',t,'");')
    111         else
    112             output(' ',push_func,'(tolua_S,(void*)'..self:getvalue(class,static)..',"',t,'");')
     109            output(' tolua_pushusertype(tolua_S,(void*)&'..self:getvalue(class,static)..',"',t,'");')
     110        else
     111            output(' tolua_pushusertype(tolua_S,(void*)'..self:getvalue(class,static)..',"',t,'");')
    113112        end
    114113    end
     
    194193            output('tolua_to'..t,'(tolua_S,3,',def,'));')
    195194        else
    196             local to_func = get_to_function(self.type)
    197             output(to_func,'(tolua_S,3,',def,'));')
     195            output('tolua_tousertype(tolua_S,3,',def,'));')
    198196        end
    199197        output(' return 0;')
     
    205203
    206204function classArray:register (pre)
    207     if not self:check_public_access() then
    208         return
    209     end
    210 
    211205    pre = pre or ''
    212206    if self.csetname then
Note: See TracChangeset for help on using the changeset viewer.