int umocktypes_windows_register_types()

in src/umocktypes_windows.c [98:130]


int umocktypes_windows_register_types(void)
{
    /* Codes_SRS_UMOCKTYPES_WINDOWS_01_005: [ On success, umocktypes_windows_register_types shall return 0. ]*/
    int result;

    /* Codes_SRS_UMOCKTYPES_WINDOWS_01_026: [ umocktypes_windows_register_types shall register the charptr types by calling umocktypes_charptr_register_types. ]*/
    if (umocktypes_charptr_register_types() != 0)
    {
        UMOCK_LOG("umocktypes_charptr_register_types failed");
        result = MU_FAILURE;
    }
    /* Codes_SRS_UMOCKTYPES_WINDOWS_01_033: [ umocktypes_windows_register_types shall register the wcharptr types by calling umocktypes_wcharptr_register_types. ]*/
    else if (umocktypes_wcharptr_register_types() != 0)
    {
        UMOCK_LOG("umocktypes_wcharptr_register_types failed");
        result = MU_FAILURE;
    }
    /* Codes_SRS_UMOCKTYPES_WINDOWS_01_035: [ umocktypes_windows_register_types shall register the stdint types by calling umocktypes_stdint_register_types. ]*/
    else if (umocktypes_stdint_register_types() != 0)
    {
        UMOCK_LOG("umocktypes_stdint_register_types failed");
        result = MU_FAILURE;
    }
    else
    {
        result = 0;

        /* Codes_SRS_UMOCKTYPES_WINDOWS_01_009: [ umocktypes_windows_register_types shall register support for the following alias types: ]*/
        MU_FOR_EACH_2(REGISTER_ALIAS_PAIR, WINDOWS_TYPES_ALIAS_PAIRS);
    }

    return result;
}