VirtualBox

Changeset 55192 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 10, 2015 5:43:53 PM (10 years ago)
Author:
vboxsync
Message:

gcc 5 is very picky regarding FUNCTION and PRETTY_FUNCTION in C90 code

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r48934 r55192  
    16141614        if (RT_UNLIKELY(!(expr))) \
    16151615        { \
    1616             RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1616            RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    16171617            RTAssertReleasePanic(); \
    16181618        } \
     
    18291829#define AssertReleaseMsgFailed(a)  \
    18301830    do { \
    1831         RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1831        RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    18321832        RTAssertMsg2Weak a; \
    18331833        RTAssertReleasePanic(); \
     
    19401940        for (;;) \
    19411941        { \
    1942             RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1942            RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    19431943            RTAssertReleasePanic(); \
    19441944        } \
     
    19541954        for (;;) \
    19551955        { \
    1956             RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1956            RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \
    19571957            RTAssertMsg2Weak a; \
    19581958            RTAssertReleasePanic(); \
  • trunk/include/iprt/cdefs.h

    r55124 r55192  
    26382638
    26392639/** Source position. */
    2640 #define RT_SRC_POS         __FILE__, __LINE__, __PRETTY_FUNCTION__
     2640#define RT_SRC_POS         __FILE__, __LINE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__
    26412641
    26422642/** Source position declaration. */
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