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()); }