VirtualBox

Changeset 106493 in vbox for trunk/include


Ignore:
Timestamp:
Oct 19, 2024 3:03:51 AM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165325
Message:

iprt/cdefs.h: Added RT_MSC_VER_VS2022 and RT_MSC_VER_VC143; define RT_FALL_THROUGH for C++17 compilers (like VC). jiraref:VBP-1171

File:
1 edited

Legend:

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

    r106061 r106493  
    328328#define RT_MSC_VER_VS2019_U11   (1929)                  /**< Visual Studio 2019, update 11. */
    329329#define RT_MSC_VER_VC142_U11    RT_MSC_VER_VS2019_U11   /**< Visual C++ 14.2 update 11. */
     330#define RT_MSC_VER_VS2022       (1930)                  /**< Visual Studio 2022. */
     331#define RT_MSC_VER_VC143        RT_MSC_VER_VS2022       /**< Visual C++ 14.3, aka Visual Studio 2022. */
    330332/** @} */
    331333
     
    15001502#elif RT_CLANG_PREREQ(12, 0) || RT_GNUC_PREREQ(7, 0)
    15011503# define RT_FALL_THROUGH()      __attribute__((__fallthrough__))
     1504#elif RT_CPLUSPLUS_PREREQ(201700)
     1505# define RT_FALL_THROUGH()      [[fallthrough]]
    15021506#else
    15031507# define RT_FALL_THROUGH()      (void)0
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