VirtualBox

Changeset 6208 in vbox for trunk


Ignore:
Timestamp:
Dec 28, 2007 4:11:59 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27009
Message:

added DECLNORETURN()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r6173 r6208  
    478478#else
    479479# define DECLASMTYPE(type)      type
     480#endif
     481
     482/** @def DECLNORETURN
     483 * How to declare a function which does not return.
     484 */
     485#ifdef _MSC_VER
     486# define DECLNORETURN(type)     __declspec(noreturn) type
     487#elif defined(__GNUC__)
     488# define DECLNORETURN(type)     __attribute__((noreturn)) type
     489#else
     490# define DECLNORETURN(type)     type
    480491#endif
    481492
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