VirtualBox

Ignore:
Timestamp:
Apr 26, 2020 1:28:56 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137546
Message:

Add/Nt/Installer: Simple installer program for NT 3.x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/getopt.cpp

    r82968 r83979  
    4040#include <iprt/string.h>
    4141#include <iprt/uuid.h>
     42
     43
     44/*********************************************************************************************************************************
     45*   Defined Constants And Macros                                                                                                 *
     46*********************************************************************************************************************************/
     47#ifdef IPRT_MINIMAL
     48# define RTStrICmp  RTStrICmpAscii
     49# define RTStrNICmp RTStrNICmpAscii
     50#else
     51#endif
    4252
    4353
     
    91101RT_EXPORT_SYMBOL(RTGetOptInit);
    92102
     103#ifndef IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES
    93104
    94105/**
     
    128139}
    129140
     141#endif /* IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES */
    130142
    131143/**
     
    370382#undef MY_BASE_INT_CASE
    371383
     384#ifndef IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES
     385
    372386        case RTGETOPT_REQ_IPV4ADDR:
    373387        {
     
    398412            break;
    399413        }
     414
     415#endif /* IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES */
    400416
    401417        case RTGETOPT_REQ_UUID:
     
    442458                            { /* likely */ } \
    443459                            else \
    444                                { RTAssertMsg2("z rc=%Rrc: '%s' '%s' uBase=%d\n", rc, pszValue, pszNext, uBase); return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; } \
     460                                AssertMsgFailedReturn(("z rc=%Rrc: '%s' '%s' uBase=%d\n", rc, pszValue, pszNext, uBase), \
     461                                                       VERR_GETOPT_INVALID_ARGUMENT_FORMAT); \
    445462                        } \
    446463                        else if (fSwitchValue != (a_fReqValueOptional)) \
    447                         { RTAssertMsg2("x\n"); return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; } \
     464                            AssertMsgFailedReturn(("x\n"), VERR_GETOPT_INVALID_ARGUMENT_FORMAT); \
    448465                    } \
    449466                    else if (fSwitchValue != (a_fReqValueOptional)) \
    450                         { RTAssertMsg2("y\n"); return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; } \
     467                        AssertMsgFailedReturn(("y\n"), VERR_GETOPT_INVALID_ARGUMENT_FORMAT); \
    451468                    pValueUnion->a_MemberPrefix##Second = Value2; \
    452469                    pValueUnion->a_MemberPrefix##First  = Value1; \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette