lua-users home
lua-l archive

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


I'm writing a Lua module in C, but I want to store some Lua code in it
as well to perform some initialization, and use lua_load() to run it
as needed. However, I'm wondering about the best way to store this
code.
If I store it compiled, it may not work, because the bytecode format
differs from one system to the next, correct?
But if I store it as text, it requires the compiler, which may not be
available e.g. in embedded systems?
How does lua_load() react if Lua was compiled without the ability to
compile code? Is there a reliable way to embed Lua code in a C
library?

-- 
Sent from my Game Boy.