VirtualBox

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


Ignore:
Timestamp:
Oct 10, 2008 4:20:30 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37716
Message:

use a gcc extension to fix annoying warnings

File:
1 edited

Legend:

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

    r8687 r13183  
    244244 *  failure.
    245245 */
    246 #define CHECK_ERROR_BREAK(iface, method) \
     246#if defined(__GNUC__)
     247 #define CHECK_ERROR_BREAK(iface, method) \
     248    ({ CHECK_ERROR (iface, method); if (FAILED (rc)) break; })
     249#else
     250 #define CHECK_ERROR_BREAK(iface, method) \
    247251    if (1) { CHECK_ERROR (iface, method); if (FAILED (rc)) break; } else do {} while (0)
     252#endif
    248253
    249254#define CHECK_ERROR_NOCALL() \
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