VirtualBox

Changeset 20928 in vbox for trunk/include


Ignore:
Timestamp:
Jun 25, 2009 11:53:37 AM (16 years ago)
Author:
vboxsync
Message:

API/others: Renamed IConsole::discardSavedState to IConsole::forgetSavedState, added parameter. Deleted old IConsole::powerDown, renamed IConsole::powerDownAsync to IConsole::powerDown (as promised for 2.1). Implemented perl sample code for registering a hard disk. Cleaned up constant formatting in the API docs. Updated SDK changelog. Renamed com/errorprint2.h to com/errorprint.h, added a few assertion variants. Eliminated com/errorprint_legacy.h. Adjusted all files using the affected headers and APIs. Renamed tstHeadless2 to tstHeadless.

Location:
trunk/include/VBox/com
Files:
1 deleted
1 moved

Legend:

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

    r20914 r20928  
    117117#endif
    118118
     119/**
     120 *  Does the same as ASSERT(), but executes the |return ret| statement if the
     121 *  expression to assert is false;
     122 */
     123#define ASSERT_RET(expr, ret) \
     124    do { ASSERT(expr); if (!(expr)) return (ret); } while (0)
     125
     126/**
     127 *  Does the same as ASSERT(), but executes the |break| statement if the
     128 *  expression to assert is false;
     129 */
     130#define ASSERT_BREAK(expr, ret) \
     131    if (1) { ASSERT(expr); if (!(expr)) break; } else do {} while (0)
     132
    119133} /* namespace com */
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