Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Update to tolua 1.0.93

File:
1 edited

Legend:

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

    r2710 r3127  
    4747    end
    4848
     49    -- pad to 16 bytes
     50    local npad = 16 - (#s % 16)
     51    local spad = ""
     52    for i=1,npad do
     53        spad = spad .. "-"
     54    end
     55    s = s..spad
     56
    4957    -- convert to C
    5058    output('\n'..pre..'{ /* begin embedded lua code */\n')
    5159    output(pre..' int top = lua_gettop(tolua_S);')
    52     output(pre..' static unsigned char B[] = {\n   ')
     60    output(pre..' static const unsigned char B[] = {\n   ')
    5361    local t={n=0}
    5462    local b = gsub(s, '(.)',
Note: See TracChangeset for help on using the changeset viewer.