VirtualBox

Changeset 97968 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Jan 3, 2023 10:19:59 PM (2 years ago)
Author:
vboxsync
Message:

iprt/cpp/hardavlrange.h: Tweaked AssertCompile hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/hardavlrange.h

    r96407 r97968  
    696696                    if (pLeftNode)
    697697                    {
    698 #if RT_GNUC_PREREQ_EX(4,7, 1) /* 32-bit 4.4.7 has trouble, dunno when it started working exactly */
    699                         AssertCompile(kMaxStack > 6);
     698#if RT_GNUC_PREREQ_EX(4,7,1) && defined(RTASSERT_HAVE_STATIC_ASSERT) /* 32-bit 4.4.7 has trouble, dunno when it started working */
     699                        AssertCompile(kMaxStack > 6);                /* exactly. Seems having static_assert is required. */
    700700#endif
    701701                        AssertMsgReturnStmt(cEntries < RT_ELEMENTS(apEntries),
     
    732732                    if (pRightNode)
    733733                    {
    734 #if RT_GNUC_PREREQ_EX(4,7, 1) /* 32-bit 4.4.7 has trouble, dunno when it started working exactly */
    735                         AssertCompile(kMaxStack > 6);
     734#if RT_GNUC_PREREQ_EX(4,7,1) && defined(RTASSERT_HAVE_STATIC_ASSERT) /* 32-bit 4.4.7 has trouble, dunno when it started working */
     735                        AssertCompile(kMaxStack > 6);                /* exactly. Seems having static_assert is required. */
    736736#endif
    737737                        AssertMsgReturnStmt(cEntries < RT_ELEMENTS(apEntries),
     
    806806                    if (pRightNode)
    807807                    {
    808 #if RT_GNUC_PREREQ_EX(4,7, 1) /* 32-bit 4.4.7 has trouble, dunno when it started working exactly */
    809                         AssertCompile(kMaxStack > 6);
     808#if RT_GNUC_PREREQ_EX(4,7,1) && defined(RTASSERT_HAVE_STATIC_ASSERT) /* 32-bit 4.4.7 has trouble, dunno when it started working */
     809                        AssertCompile(kMaxStack > 6);                /* exactly. Seems having static_assert is required. */
    810810#endif
    811811                        AssertMsgReturnStmt(cEntries < RT_ELEMENTS(apEntries),
     
    842842                    if (pLeftNode)
    843843                    {
    844 #if RT_GNUC_PREREQ_EX(4,7, 1) /* 32-bit 4.4.7 has trouble, dunno when it started working exactly */
    845                         AssertCompile(kMaxStack > 6);
     844#if RT_GNUC_PREREQ_EX(4,7,1) && defined(RTASSERT_HAVE_STATIC_ASSERT) /* 32-bit 4.4.7 has trouble, dunno when it started working */
     845                        AssertCompile(kMaxStack > 6);                /* exactly. Seems having static_assert is required. */
    846846#endif
    847847                        AssertMsgReturnStmt(cEntries < RT_ELEMENTS(apEntries),
     
    930930                    if (pLeftNode)
    931931                    {
    932 #if RT_GNUC_PREREQ_EX(4,7, 1) /* 32-bit 4.4.7 has trouble, dunno when it started working exactly */
    933                         AssertCompile(kMaxStack > 6);
     932#if RT_GNUC_PREREQ_EX(4,7,1) && defined(RTASSERT_HAVE_STATIC_ASSERT) /* 32-bit 4.4.7 has trouble, dunno when it started working */
     933                        AssertCompile(kMaxStack > 6);                /* exactly. Seems having static_assert is required. */
    934934#endif
    935935                        AssertMsgReturnStmt(cEntries < RT_ELEMENTS(apEntries),
     
    960960                    if (pRightNode)
    961961                    {
    962 #if RT_GNUC_PREREQ_EX(4,7, 1) /* 32-bit 4.4.7 has trouble, dunno when it started working exactly */
    963                         AssertCompile(kMaxStack > 6);
     962#if RT_GNUC_PREREQ_EX(4,7,1) && defined(RTASSERT_HAVE_STATIC_ASSERT) /* 32-bit 4.4.7 has trouble, dunno when it started working */
     963                        AssertCompile(kMaxStack > 6);                /* exactly. Seems having static_assert is required. */
    964964#endif
    965965                        AssertMsgReturnStmt(cEntries < RT_ELEMENTS(apEntries),
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