lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Just to say I made my own changes in tolua++ 1.0.5 and 1.0.6 ... And
now, think
it's a good idea to share what I made ...
the patch 1.0.5 is a litle different

++ Added defines #TOLUA_DISABLE_AAA to disable the function AAA (to
replace it by manual one for example
Example :

/* method: doSet of class  CmdAlignment */
static int
// function code
#endif //#ifndef TOLUA_DISABLE

++ Added possibility to insert more than one line of C code by using

// tolua code
// C code
// tolua code

++ Added descriptions in lua chuks ... for $lfile it's the file name and
for $[ ... $] it is the first line so :

$[ -- description
-- lua code

will have description "-- description"
The important thing is those descriptions appears in stack traceback ...
so it's easier to debug programms.

++ Last thing : indentation in tolua_packagename_open.

The patch files are here :
[tolua++ 1.0.5]
[tolua++ 1.0.6] in this version, tabulations are replaced with one space
[tolua++ 1.0.6]

Usage: cd to tolua++-1.0.5/src/bin
patch -p1 < patchfile.patch
This will patcjh lua/ directory ... then you need to compile it.
cd to tolua++ root directory
rebuild tolua++ c files by: scons build_dev=1


<> ou <>
Le courrier E-mail est une correspondance privée. Merci de vous y conformer

Attachment: signature.asc
Description: OpenPGP digital signature