예제 #1
0
파일: Stack.cs 프로젝트: ssnkamali/Dynamo
        public static StackValue AsDouble(this StackValue operand)
        {
            switch (operand.optype)
            {
            case AddressType.Int:
                return(StackValue.BuildDouble(operand.opdata));

            case AddressType.Double:
                return(StackValue.BuildDouble(operand.opdata_d));

            default:
                return(StackValue.Null);
            }
        }
예제 #2
0
 public void Push(double val)
 {
     runtime.rmem.Push(StackValue.BuildDouble(val));
 }