VirtualBox

Ignore:
Timestamp:
Aug 2, 2022 12:55:08 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152733
Message:

include/iprt/nocrt: Prototyped a whole bunch of things to make mesa (almost) compile. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nocrt/exception

    r95922 r95975  
    3939public:
    4040    exception() RT_NOEXCEPT
     41#ifdef _MSC_VER
     42        : m_pszWhat(NULL)
     43#endif
    4144    { }
    4245
    43     exception(const exception &) RT_NOEXCEPT
    44     { }
     46    exception(const exception &a_rThat) RT_NOEXCEPT
     47#ifdef _MSC_VER
     48        : m_pszWhat(a_rThat.m_pszWhat)
     49#endif
     50    {
     51        RT_NOREF(a_rThat);
     52    }
     53
     54#ifdef _MSC_VER
     55    exception(const char *a_pszWhat, int a_iIgnored = 0) RT_NOEXCEPT
     56        : m_pszWhat(a_pszWhat)
     57    { RT_NOREF(a_iIgnored); }
     58#endif
    4559
    4660    virtual ~exception() RT_NOEXCEPT
     
    4963    virtual const char *what() const RT_NOEXCEPT
    5064    {
     65#ifdef _MSC_VER
     66        if (m_pszWhat)
     67            return m_pszWhat;
     68#endif
    5169        return "unknown exception";
    5270    }
     71#ifdef _MSC_VER
     72protected:
     73        const char *m_pszWhat;
     74#endif
    5375};
    5476
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