lua-users home
lua-l archive

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

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
// a tolua_tolualua_open() that is equivalent to dofile() of the following
// (so if you change one of the lua files, run tolua on this package to

Best regards,
Peter Prade

-----Ursprüngliche Nachricht-----
[]Im Auftrag von
Gesendet: Freitag, 10. August 2001 2:36
An: Multiple recipients of list
Betreff: Modifying and Compiling tolua


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