[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: AW: Modifying and Compiling tolua
- From: "Peter Prade" <prade@...>
- Date: Fri, 10 Aug 2001 03:06:36 +0200
Thats easy! (although i had i hard time to find out myself)
in the source included is a .pkg file: tolualua.pkg
if you use tolua to process this package file, it will create the .c file
tolualua.c containing the embedded code.
Perhaps it would be a good idea to mention this a bit more clearly in the
documentation :-)
i added this header to my tolualua.pkg file:
// when this package is processed with tolua, the resulting tolualua.c will
contain
// a tolua_tolualua_open() that is equivalent to dofile() of the following
files:
// (so if you change one of the lua files, run tolua on this package to
update)
Best regards,
Peter Prade
-----Ursprüngliche Nachricht-----
Von: owner-lua-l@tecgraf.puc-rio.br
[mailto:owner-lua-l@tecgraf.puc-rio.br]Im Auftrag von gikmo71@yahoo.com
Gesendet: Freitag, 10. August 2001 2:36
An: Multiple recipients of list
Betreff: Modifying and Compiling tolua
Hello,
I'm trying to make a change in the declaration.lua file that is used
by the tolua program. It seems that the .lua files that tolua uses
are precompiled and embedded in the C code so that the executable
doesn't require the .lua files.
I don't know how to perform this process of embedding the scripts in
C so that my changes take effect. Does anyone know how to do this?
I'm really new to lua and tolua, so any help would be greatly
appreciated.
Thanks,
Andrew