|
Jing (George) Cao wrote:
Is there any way in lua that I can use to run a chunk of lua script in c code? Can lua_load do that?
Yes. But it's easier to use luaL_loadbuffer or luaL_loadfile. See src/lib/lauxlib.c Also see http://lua-users.org/lists/lua-l/2002-12/msg00046.html - Peter Shook