void ThrowException() { string error = luaState.LuaToString(-1); luaState.LuaPop(2); throw new LuaException(error, LuaException.GetLastError()); }
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()); }