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); }
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()); }
public static int lua_dofile(IntPtr luaState, string chunk) { return(LuaDLL.luaL_dofile(luaState, chunk)); }