Re: Problems loading a lua function in c
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Problems loading a lua function in c
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2006年3月24日 15:47:13 -0300
This appears to the be #1 FAQ lately: lua_loadfile loads but *does not*
execute a Lua program. Use luaL_dofile instead. Perhaps this needs to be
clear in the manual.
In your case, call lua_pcall before lua_getfield and all will be well.
--lhf