예제 #1
0
    static int test_0_vtype_phi()
    {
        VTypePhi v1 = new VTypePhi()
        {
            i = 1
        };
        VTypePhi v2 = new VTypePhi()
        {
            i = 2
        };

        if (vtype_phi(v1, v2, true) != 1)
        {
            return(1);
        }
        if (vtype_phi(v1, v2, false) != 2)
        {
            return(2);
        }

        return(0);
    }
예제 #2
0
파일: objects.cs 프로젝트: kumpera/mono
	static int test_0_vtype_phi ()
	{
		VTypePhi v1 = new VTypePhi () { i = 1 };
		VTypePhi v2 = new VTypePhi () { i = 2 };

		if (vtype_phi (v1, v2, true) != 1)
			return 1;
		if (vtype_phi (v1, v2, false) != 2)
			return 2;

		return 0;
	}
예제 #3
0
파일: objects.cs 프로젝트: kumpera/mono
	static int vtype_phi (VTypePhi v1, VTypePhi v2, bool first) {
		VTypePhi v = first ? v1 : v2;

		return v.i;
	}
예제 #4
0
    static int vtype_phi(VTypePhi v1, VTypePhi v2, bool first)
    {
        VTypePhi v = first ? v1 : v2;

        return(v.i);
    }