Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2009, 4:29:42 PM (16 years ago)
Author:
rgrieder
Message:

Update to tolua 1.0.93

File:
1 edited

Legend:

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

    r2710 r3127  
    2222-- register enumeration
    2323function classEnumerate:register (pre)
     24    if not self:check_public_access() then
     25        return
     26    end
    2427    pre = pre or ''
    2528    local nspace = getnamespace(classContainer.curr)
    2629    local i=1
    2730    while self[i] do
    28         output(pre..'tolua_constant(tolua_S,"'..self.lnames[i]..'",'..nspace..self[i]..');')
     31        if self.lnames[i] and self.lnames[i] ~= "" then
     32            output(pre..'tolua_constant(tolua_S,"'..self.lnames[i]..'",'..nspace..self[i]..');')
     33        end
    2934        i = i+1
    3035    end
     
    5661            Variable("tolua_readonly int "..varname)
    5762        end
     63    end
     64    local parent = classContainer.curr
     65    if parent then
     66        t.access = parent.curr_member_access
     67        t.global_access = t:check_public_access()
    5868    end
    5969    return t
Note: See TracChangeset for help on using the changeset viewer.