LuaInterface.LuaStatePtr.LuaDoFile C# (CSharp) Method

LuaDoFile() public method

public LuaDoFile ( string fileName ) : bool
fileName string
return bool
        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());
        }