示例#1
0
    public static int test_0_In_Args_Value_In_RCX()
    {
        int retCode;

        winx64_struct1 t_winx64_struct1 = new winx64_struct1(123);

        if ((retCode = mono_test_Winx64_struct1_in(t_winx64_struct1)) != 0)
        {
            return(100 + retCode);
        }

        winx64_struct2 t_winx64_struct2 = new winx64_struct2(4, 5);

        if ((retCode = mono_test_Winx64_struct2_in(t_winx64_struct2)) != 0)
        {
            return(200 + retCode);
        }

        winx64_struct3 t_winx64_struct3 = new winx64_struct3(4, 5, 0x1234);

        if ((retCode = mono_test_Winx64_struct3_in(t_winx64_struct3)) != 0)
        {
            return(300 + retCode);
        }

        winx64_struct4 t_winx64_struct4 = new winx64_struct4(4, 5, 0x1234, 0x87654321);

        if ((retCode = mono_test_Winx64_struct4_in(t_winx64_struct4)) != 0)
        {
            return(400 + retCode);
        }

        winx64_floatStruct t_winx64_floatStruct = new winx64_floatStruct(5.5F, 9.5F);

        if ((retCode = mono_test_Winx64_floatStruct(t_winx64_floatStruct)) != 0)
        {
            return(500 + retCode);
        }

        winx64_doubleStruct t_winx64_doubleStruct = new winx64_doubleStruct(5.5F);

        if ((retCode = mono_test_Winx64_doubleStruct(t_winx64_doubleStruct)) != 0)
        {
            return(600 + retCode);
        }

        return(0);
    }
示例#2
0
    public static int test_0_In_Args_Value_In_RCX()
    {
        int retCode;

        winx64_struct1 t_winx64_struct1 = new winx64_struct1(123);

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: winx64_struct1 t_winx64_struct1 = new winx64_struct1 (123) done ****\n");
        //
        //  Ende Aenderung Test
        //
        if ((retCode = mono_test_Winx64_struct1_in(t_winx64_struct1)) != 0)
        {
            return(100 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_struct1_in (t_winx64_struct1) done ****\n");
        //
        //  Ende Aenderung Test
        //
        winx64_struct2 t_winx64_struct2 = new winx64_struct2(4, 5);

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t**** C#: winx64_struct2 t_winx64_struct2 = new winx64_struct2 (4, 5) done ****\n");
        //
        //  Ende Aenderung Test
        //
        if ((retCode = mono_test_Winx64_struct2_in(t_winx64_struct2)) != 0)
        {
            return(200 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_struct2_in (t_winx64_struct2) done ****\n");
        //
        //  Ende Aenderung Test
        //
        winx64_struct3 t_winx64_struct3 = new winx64_struct3(4, 5, 0x1234);

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t**** C#: winx64_struct3 t_winx64_struct3 = new winx64_struct3 (4, 5, 0x1234) done ****\n");
        //
        //  Ende Aenderung Test
        //
        if ((retCode = mono_test_Winx64_struct3_in(t_winx64_struct3)) != 0)
        {
            return(300 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_struct3_in (t_winx64_struct3) done ****\n");
        //
        //  Ende Aenderung Test
        //
        winx64_struct4 t_winx64_struct4 = new winx64_struct4(4, 5, 0x1234, 0x87654321);

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t**** C#: winx64_struct4 t_winx64_struct4 = new winx64_struct4 (4, 5, 0x1234, 0x87654321) done ****\n");
        //
        //  Ende Aenderung Test
        //
        if ((retCode = mono_test_Winx64_struct4_in(t_winx64_struct4)) != 0)
        {
            return(400 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_struct4_in (t_winx64_struct4) done ****\n");
        //
        //  Ende Aenderung Test
        //
        winx64_floatStruct t_winx64_floatStruct = new winx64_floatStruct(5.5F, 9.5F);

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t**** C#: winx64_floatStruct t_winx64_floatStruct = new winx64_floatStruct (5.5F, 9.5F) done ****\n");
        //
        //  Ende Aenderung Test
        //
        if ((retCode = mono_test_Winx64_floatStruct(t_winx64_floatStruct)) != 0)
        {
            return(500 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_floatStruct (t_winx64_floatStruct) done ****\n");
        //
        //  Ende Aenderung Test
        //
        winx64_doubleStruct t_winx64_doubleStruct = new winx64_doubleStruct(5.5F);

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t**** C#: winx64_doubleStruct t_winx64_doubleStruct = new winx64_doubleStruct (5.5F) done ****\n");
        //
        //  Ende Aenderung Test
        //
        if ((retCode = mono_test_Winx64_doubleStruct(t_winx64_doubleStruct)) != 0)
        {
            return(600 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_doubleStruct (t_winx64_doubleStruct) done ****\n");
        //
        //  Ende Aenderung Test
        //
        return(0);
    }
示例#3
0
 static extern int mono_test_Winx64_doubleStruct([MarshalAs(UnmanagedType.Struct)] winx64_doubleStruct var);
 public static int test_0_In_Args_Value_In_RCX()
 {
     int
     retCode;
     winx64_struct1
     t_winx64_struct1
     =
     new
     winx64_struct1
     (123);
     if
     ((retCode
     =
     mono_test_Winx64_struct1_in
     (t_winx64_struct1))
     !=
     0)
     return
     100
     +
     retCode;
     winx64_struct2
     t_winx64_struct2
     =
     new
     winx64_struct2
     (4,
     5);
     if
     ((retCode
     =
     mono_test_Winx64_struct2_in
     (t_winx64_struct2))
     !=
     0)
     return
     200
     +
     retCode;
     winx64_struct3
     t_winx64_struct3
     =
     new
     winx64_struct3
     (4,
     5,
     0x1234);
     if
     ((retCode
     =
     mono_test_Winx64_struct3_in
     (t_winx64_struct3))
     !=
     0)
     return
     300
     +
     retCode;
     winx64_struct4
     t_winx64_struct4
     =
     new
     winx64_struct4
     (4,
     5,
     0x1234,
     0x87654321);
     if
     ((retCode
     =
     mono_test_Winx64_struct4_in
     (t_winx64_struct4))
     !=
     0)
     return
     400
     +
     retCode;
     winx64_floatStruct
     t_winx64_floatStruct
     =
     new
     winx64_floatStruct
     (5.5F,
     9.5F);
     if
     ((retCode
     =
     mono_test_Winx64_floatStruct
     (t_winx64_floatStruct))
     !=
     0)
     return
     500
     +
     retCode;
     winx64_doubleStruct
     t_winx64_doubleStruct
     =
     new
     winx64_doubleStruct
     (5.5F);
     if
     ((retCode
     =
     mono_test_Winx64_doubleStruct
     (t_winx64_doubleStruct))
     !=
     0)
     return
     600
     +
     retCode;
     return
     0;
 }