[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Win32 Lua to EXE
- From: gary ng <garyng2000@...>
- Date: Sat, 1 Sep 2007 18:54:19 -0700 (PDT)
What if my lua program has 'require' statements ?
I can patch linit.c to include my frequently used C
libraries(lmd5, lposix etc.) but don't know how to
include modules that is written in lua to be all
embedded into one single executable.
--- Luiz Henrique de Figueiredo
> > first, use luac to compile it to bytecode
> > second, make the byte code a C char array and
> include it into your C file
> > third. use lua_loadbuffer to load your C string.
> > and last, use pcall to run it.
> Or use my srlua:
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.