VirtualBox

Ignore:
Timestamp:
Jul 9, 2010 2:08:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63550
Message:

Main/OVF: add DebugThrow macro to ease debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r30760 r30763  
    490490
    491491/**
     492 *  A variant of 'throw' that hits a debug breakpoint first to make
     493 *  finding the actual thrower possible.
     494 */
     495#if defined (DEBUG)
     496#define DebugBreakThrow(a) throw (a)
     497#else
     498#define DebugBreakThrow(a) \
     499    do { \
     500        RTAssertDebugBreak(); \
     501        throw (a); \
     502    } while (0)
     503#endif
     504
     505/**
    492506 * Parent class of VirtualBoxBase which enables translation support (which
    493507 * Main doesn't have yet, but this provides the tr() function which will one
Note: See TracChangeset for help on using the changeset viewer.

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