Changeset 83979 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Apr 26, 2020 1:28:56 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137546
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r82968 r83979 40 40 #include <iprt/string.h> 41 41 #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 42 52 43 53 … … 91 101 RT_EXPORT_SYMBOL(RTGetOptInit); 92 102 103 #ifndef IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES 93 104 94 105 /** … … 128 139 } 129 140 141 #endif /* IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES */ 130 142 131 143 /** … … 370 382 #undef MY_BASE_INT_CASE 371 383 384 #ifndef IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES 385 372 386 case RTGETOPT_REQ_IPV4ADDR: 373 387 { … … 398 412 break; 399 413 } 414 415 #endif /* IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES */ 400 416 401 417 case RTGETOPT_REQ_UUID: … … 442 458 { /* likely */ } \ 443 459 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); \ 445 462 } \ 446 463 else if (fSwitchValue != (a_fReqValueOptional)) \ 447 { RTAssertMsg2("x\n"); return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; }\464 AssertMsgFailedReturn(("x\n"), VERR_GETOPT_INVALID_ARGUMENT_FORMAT); \ 448 465 } \ 449 466 else if (fSwitchValue != (a_fReqValueOptional)) \ 450 { RTAssertMsg2("y\n"); return VERR_GETOPT_INVALID_ARGUMENT_FORMAT; }\467 AssertMsgFailedReturn(("y\n"), VERR_GETOPT_INVALID_ARGUMENT_FORMAT); \ 451 468 pValueUnion->a_MemberPrefix##Second = Value2; \ 452 469 pValueUnion->a_MemberPrefix##First = Value1; \
Note:
See TracChangeset
for help on using the changeset viewer.