|
> So i use instead "luaL_loadfile (L, "script.lua") " > > But after loading the script file, how can i execute "foo" function from > inside it ? Function definition is an executable statement so you need to execute the script to define the functions it contains.