Changeset 34073 in vbox for trunk/src/VBox/Main/include/VirtualBoxBase.h
- Timestamp:
- Nov 15, 2010 3:38:20 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67761
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/VirtualBoxBase.h
r33921 r34073 347 347 348 348 /** 349 * Converts the Guid input argument (string) to a Guid object, returns with 350 * E_INVALIDARG and error message on failure. 351 * 352 * @param a_Arg Argument. 353 * @param a_GuidVar The Guid variable name. 354 */ 355 #define CheckComArgGuid(a_Arg, a_GuidVar) \ 356 do { \ 357 Guid tmpGuid(a_Arg); \ 358 (a_GuidVar) = tmpGuid; \ 359 if (RT_UNLIKELY((a_GuidVar).isEmpty())) \ 360 return setError(E_INVALIDARG, \ 361 tr("GUID argument %s is not valid (\"%ls\")"), #a_Arg, Bstr(a_Arg).raw()); \ 362 } while (0) 363 364 /** 349 365 * Checks that the given expression (that must involve the argument) is true and 350 366 * returns E_INVALIDARG + extended error info on failure.
Note:
See TracChangeset
for help on using the changeset viewer.