예제 #1
0
        // steffenj: END Lua 5.1.1 API change (lua_newtable is gone, lua_createtable is new)
        // steffenj: BEGIN Lua 5.1.1 API change (lua_dofile now in LuaLib as luaL_dofile macro)
        public static int luaL_dofile(LuaCore.lua_State luaState, string fileName)
        {
            int result = LuaCore.luaL_loadfile(luaState, fileName);

            if (result != 0)
            {
                return(result);
            }

            return(LuaCore.lua_pcall(luaState, 0, -1, 0));
        }
예제 #2
0
 public static int luaL_loadfile(LuaCore.lua_State luaState, string filename)
 {
     return(LuaCore.luaL_loadfile(luaState, filename));
 }