Esempio n. 1
0
        public bool LuaDoFile(string fileName)
        {
            int newTop = this.LuaGetTop();

            if (LuaDLL.luaL_dofile(this.L, fileName))
            {
                return(true);
            }
            string msg = this.LuaToString(-1);

            this.LuaSetTop(newTop);
            throw new LuaException(msg, LuaException.GetLastError(), 1);
        }
Esempio n. 2
0
        public bool LuaDoFile(string fileName)
        {
            int top = LuaGetTop();

            if (LuaDLL.luaL_dofile(L, fileName))
            {
                return(true);
            }

            string err = LuaToString(-1);

            LuaSetTop(top);
            throw new LuaException(err, LuaException.GetLastError());
        }
Esempio n. 3
0
 public static int lua_dofile(IntPtr luaState, string chunk)
 {
     return(LuaDLL.luaL_dofile(luaState, chunk));
 }