[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dofile in 5.1
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 31 Jul 2005 23:16:37 -0300
> The old function lua_dofile does not seem to exist, and I'm wondering
> if I just need to add my own function that calls luaL_loadfile, and
> lua_pcall, or if there is a newer/better method.
You should use luaL_loadfile and lua_pcall, like here:
status = (luaL_loadfile(L, filename) || lua_pcall(L, 0, 0, 0));
-- Roberto