exec lua scrip from C

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

exec lua scrip from C

coldpeace
Hey,
I have some trouble to execute or load lua script from C.
actulay, in my lua script, it requires a library to call C function from somewhere else.
source1.c ---call---> scrip.lua ------> source2.c
it works fine, when lua script doesntt require other file (with luaL_loadfile), but I wonder if it's possible to exec a lua script that require (and call it self) other files.

Thx!