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/code.lua

    r3127 r3138  
    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 
    5749    -- convert to C
    5850    output('\n'..pre..'{ /* begin embedded lua code */\n')
    5951    output(pre..' int top = lua_gettop(tolua_S);')
    60     output(pre..' static const unsigned char B[] = {\n   ')
     52    output(pre..' static unsigned char B[] = {\n   ')
    6153    local t={n=0}
    6254    local b = gsub(s, '(.)',
Note: See TracChangeset for help on using the changeset viewer.