public override string ToString(Context cx) { if (!cx.IsLocal(A)) { cx.DefineLocal(A); //this fails, if this Register is used otherwise later } if (cx.IsLocal(A)) { return("local " + cx.SR(A) + " = " + cx.Bool(B).ToString()); } if (!ObjLuaFunction.DEBUG) { return(""); } return("// " + R(A) + " = " + cx.Bool(B).ToString()); }
public void Run(Context cx) { cx.SetLocal(A, cx.Bool(B)); cx.SetSReg(A, cx.Bool(B).ToString()); }