public Reckoning(bool arg, ReCon stack) { context = arg ? stack.Enter(forward: true) : null; #if !AL_OPTIMIZE callInfo = CallInfo.none; #endif }
[Test] public void CxIndexer_stackEmpty([Range(-1, 1)] int val) { var cx = new ReCon.Context(rec, forward: false); status s = status.@unchecked(val); Assert.Throws <InvOp>( () => s = cx[s]); }
public status this[status s] { get{ context?.Exit(); context = null; #if AL_OPTIMIZE return(s); #else return(s / callInfo); #endif } }
public ResetCriterion Check(object arg, ReCon stack) { bool equals = (arg == null) ? (hold == null) : arg.Equals(hold); if (!equals) { context = stack.Enter(forward: true); hold = arg; } return(this); }
[Test] public void NewCx_noRoE() { ReCon.Context cx; Assert.Throws <NullReferenceException>( () => cx = new ReCon.Context(null, forward: false)); }
[Test] public void NewContext() { var cx = new ReCon.Context(rec, forward: false); }
public Reckoning(bool arg, ReCon stack, CallInfo i) { callInfo = i; context = arg ? stack.Enter(forward: true) : null; }