Changeset 3138 for code/branches/pch/src/tolua/lua/array.lua
- Timestamp:
- Jun 10, 2009, 4:01:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/tolua/lua/array.lua
r3127 r3138 102 102 -- return value 103 103 local t,ct = isbasic(self.type) 104 local push_func = get_push_function(t)105 104 if t then 106 105 output(' tolua_push'..t..'(tolua_S,(',ct,')'..self:getvalue(class,static)..');') … … 108 107 t = self.type 109 108 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,'");') 113 112 end 114 113 end … … 194 193 output('tolua_to'..t,'(tolua_S,3,',def,'));') 195 194 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,'));') 198 196 end 199 197 output(' return 0;') … … 205 203 206 204 function classArray:register (pre) 207 if not self:check_public_access() then208 return209 end210 211 205 pre = pre or '' 212 206 if self.csetname then
Note: See TracChangeset
for help on using the changeset viewer.