Re: dofile in 5.1
[Date Prev][
Date Next][Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: dofile in 5.1
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2005年7月31日 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