VirtualBox

Changeset 13183

Show
Ignore:
Timestamp:
10/10/08 18:20:30 (3 months ago)
Author:
vboxsync
Message:

use a gcc extension to fix annoying warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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() \ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy