Exemplo n.º 1
0
        void ThrowException()
        {
            string error = luaState.LuaToString(-1);

            luaState.LuaPop(2);
            throw new LuaException(error, LuaException.GetLastError());
        }
Exemplo 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());
        }