VirtualBox

Changeset 73891 in vbox for trunk


Ignore:
Timestamp:
Aug 26, 2018 2:32:10 PM (6 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Added RT_OVERRIDE as a wrapper for the C++11 override keyword.

File:
1 edited

Legend:

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

    r73101 r73891  
    11071107#else
    11081108# define RT_THROW(type)
     1109#endif
     1110
     1111
     1112/** @def RT_OVERRIDE
     1113 * Wrapper for the C++11 override keyword.
     1114 */
     1115#ifdef __cplusplus
     1116# if RT_MSC_PREREQ_EX(RT_MSC_VER_VS2012, 0) || RT_GNUC_PREREQ(4, 7)
     1117#  define RT_OVERRIDE           override
     1118# else
     1119#  define RT_OVERRIDE
     1120# endif
     1121#else
     1122# define RT_OVERRIDE
    11091123#endif
    11101124
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