Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2008, 9:18:42 PM (16 years ago)
Author:
rgrieder
Message:

Modified package.lua to automatically remove all _LibExport macros to avoid class name conflicts.
Also adjusted hacky code in CommandExecutor, Script and GUIManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem/src/tolua/lua/package.lua

    r2233 r2234  
    239239    local code = '\n$#include "'..fn..'"\n'
    240240    s= "\n" .. s .. "\n" -- add blank lines as sentinels
     241
     242    -- eliminate export macro problems in class declarations
     243    s = gsub(s, ' _%w*Export ', ' ')
     244
    241245    local _,e,c,t = strfind(s, "\n([^\n]-)[Tt][Oo][Ll][Uu][Aa]_([^%s]*)[^\n]*\n")
    242246    while e do
Note: See TracChangeset for help on using the changeset viewer.