VirtualBox

Changeset 25149 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Dec 2, 2009 2:34:47 PM (15 years ago)
Author:
vboxsync
Message:

Main: cleanup: remove all CheckComRC* macros (no functional change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/assert.h

    r22499 r25149  
    110110    if (!SUCCEEDED (rc)) { AssertComRC (rc); throw rc; } else do {} while (0)
    111111
    112 /**
    113  *  Checks whether the given COM result code is successful.
    114  *  If not, executes the return statement with this result code.
    115  *
    116  *  @param rc   COM result code
    117  */
    118 #define CheckComRCReturnRC(rc)      \
    119     if (!SUCCEEDED (rc)) { return (rc); } else do {} while (0)
    120 
    121 /**
    122  *  Checks whether the given COM result code is successful.
    123  *  If not, executes the break statement.
    124  *
    125  *  @param rc   COM result code
    126  */
    127 #define CheckComRCBreakRC(rc)      \
    128     if (!SUCCEEDED (rc)) { break; } else do {} while (0)
    129 
    130 /**
    131  *  Checks whether the given COM result code is successful.
    132  *  If not, throws the given COM result.
    133  *
    134  *  @param rc   COM result code
    135  */
    136 #define CheckComRCThrowRC(rc)      \
    137     if (!SUCCEEDED (rc)) { throw rc; } else do {} while (0)
    138 
    139112#endif // !___VBox_com_assert_h
Note: See TracChangeset for help on using the changeset viewer.

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