示例#1
0
        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.SKst(BX));
            }

            if (!ObjLuaFunction.DEBUG)
            {
                return("");
            }
            return("// " + R(A) + " = " + cx.SKst(BX));
        }
示例#2
0
 public void Run(Context cx)
 {
     cx.SetLocal(A, cx.Kst(BX));
     cx.SetSReg(A, cx.SKst(BX));
 }