/// <summary> /// Set the globalvar with the given name to have the given value, and declare a globalvar with the given name if none exist already. /// </summary> /// <param name="varName">The name of the globalvar to alter or declare.</param> /// <param name="value">The value to store in the globalvar.</param> public void SetGlobal(string varName, object value) { GlobalMemory.SetGlobal(varName, value); }
/// <summary> /// Set the globalvar with the given name to have the given value, and declare a globalvar with the given name if none exist already. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the globalvar to check for (nested brack operations execute).</param> /// <param name="value">The value to store in the globalvar.</param> /// <returns>If a globalvar exists with the given name.</returns> public void SetGlobal(RAM r, object varName, object value) { GlobalMemory.SetGlobal(r, varName, value); }