lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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