예제 #1
0
파일: marshalbool.cs 프로젝트: mdae/MonoRT
    public static int test_0_VariantBool_In_Managed()
    {
        MarshalBoolInDelegate fcn = new MarshalBoolInDelegate(new marshalbool().MarshalBoolInHelper);
        int ret;

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: MarshalBoolInDelegate fcn = new MarshalBoolInDelegate (new marshalbool ().MarshalBoolInHelper) done ****\n");
        //
        //  Ende Aenderung Test
        //
        ret = mono_test_managed_marshal_bool_in(5, 0, 0, fcn);
        if (ret != 0)
        {
            return(0x0100 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0xFFFF, fcn);
        if (ret != 0)
        {
            return(0x0200 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0x22, fcn);
        if (ret != 0)
        {
            return(0x0300 + ret);
        }
        return(0);
    }
예제 #2
0
    public static int test_0_VariantBool_In_Managed()
    {
        MarshalBoolInDelegate fcn = new MarshalBoolInDelegate(new marshalbool().MarshalBoolInHelper);
        int ret;

        ret = mono_test_managed_marshal_bool_in(5, 0, 0, fcn);
        if (ret != 0)
        {
            return(0x0100 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0xFFFF, fcn);
        if (ret != 0)
        {
            return(0x0200 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0x22, fcn);
        if (ret != 0)
        {
            return(0x0300 + ret);
        }
        return(0);
    }
예제 #3
0
    public static int test_0_U1_In_Managed()
    {
        MarshalBoolInDelegate fcn = new MarshalBoolInDelegate(MarshalBoolInHelper);
        int ret;

        ret = mono_test_managed_marshal_bool_in(4, 0, 0, fcn);
        if (ret != 0)
        {
            return(0x0100 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(4, 1, 1, fcn);
        if (ret != 0)
        {
            return(0x0200 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(4, 1, 0x22, fcn);
        if (ret != 0)
        {
            return(0x0300 + ret);
        }
        return(0);
    }
예제 #4
0
파일: marshalbool.cs 프로젝트: nobled/mono
	public static int test_0_VariantBool_In_Managed ()
	{
		MarshalBoolInDelegate fcn = new MarshalBoolInDelegate (new marshalbool ().MarshalBoolInHelper);
		int ret;

		ret = mono_test_managed_marshal_bool_in (5, 0, 0, fcn);
		if (ret != 0)
			return 0x0100 + ret;
		ret = mono_test_managed_marshal_bool_in (5, 1, 0xFFFF, fcn);
		if (ret != 0)
			return 0x0200 + ret;
		ret = mono_test_managed_marshal_bool_in (5, 1, 0x22, fcn);
		if (ret != 0)
			return 0x0300 + ret;
		return 0;
	}
예제 #5
0
파일: marshalbool.cs 프로젝트: nobled/mono
	static extern int mono_test_managed_marshal_bool_in (int arg, uint expected, uint testVal, MarshalBoolInDelegate fcn);
예제 #6
0
	public static int test_0_U1_In_Managed ()
	{
		MarshalBoolInDelegate fcn = new MarshalBoolInDelegate (MarshalBoolInHelper);
		int ret;

		ret = mono_test_managed_marshal_bool_in (4, 0, 0, fcn);
		if (ret != 0)
			return 0x0100 + ret;
		ret = mono_test_managed_marshal_bool_in (4, 1, 1, fcn);
		if (ret != 0)
			return 0x0200 + ret;
		ret = mono_test_managed_marshal_bool_in (4, 1, 0x22, fcn);
		if (ret != 0)
			return 0x0300 + ret;
		return 0;
	}
예제 #7
0
파일: marshalbool.cs 프로젝트: mdae/MonoRT
 static extern int mono_test_managed_marshal_bool_in(int arg, uint expected, uint testVal, MarshalBoolInDelegate fcn);