[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: tolua++ 1.0.5 and 1.0.6 patch
- From: Mildred <ml.mildred593@...>
- Date: Wed, 07 Sep 2005 14:56:06 +0200
Hi,
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 */
#ifndef
TOLUA_DISABLE_tolua_luaOgre_Ogre_TextAreaOverlayElement_CmdAlignment_doSet00
static int
tolua_luaOgre_Ogre_TextAreaOverlayElement_CmdAlignment_doSet00(lua_State*
tolua_S)
{
// 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]
http://louve.dyndns.org:8080/projets/tolua++/patch-1.0.5/2005-09-07.patch
http://mildred632.free.fr/projets/tolua++/patch-1.0.5/2005-09-07.patch
[tolua++ 1.0.6] in this version, tabulations are replaced with one space
http://louve.dyndns.org:8080/projets/tolua++/patch-1.0.6/tolua++.patch
http://mildred632.free.fr/projets/tolua++/patch-1.0.6/tolua++.patch
[tolua++ 1.0.6]
http://louve.dyndns.org:8080/projets/tolua++/patch-1.0.6/tolua++-nospaces.patch
http://mildred632.free.fr/projets/tolua++/patch-1.0.6/tolua++-nospaces.patch
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
Mildred
--
<http://louve.dyndns.org> ou <http://mildred632.free.fr>
Le courrier E-mail est une correspondance privée. Merci de vous y conformer
Attachment:
signature.asc
Description: OpenPGP digital signature