VirtualBox

Ignore:
Timestamp:
Feb 11, 2022 11:09:11 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/hardavl: Added the right-to-left enumerator. Mark methods as noexcept. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTAvl.cpp

    r93694 r93709  
    11241124
    11251125
     1126static DECLCALLBACK(int) hardAvlRangeTreeGCPhysEnumCallbackDescBy4(TESTNODE *pNode, void *pvUser)
     1127{
     1128    PRTGCPHYS pExpect = (PRTGCPHYS)pvUser;
     1129    if (pNode->Key != *pExpect)
     1130        RTTestIFailed("Key=%RGp, expected %RGp\n", pNode->Key, *pExpect);
     1131    *pExpect = pNode->Key - 4;
     1132    return VINF_SUCCESS;
     1133}
     1134
     1135
    11261136static DECLCALLBACK(int) hardAvlRangeTreeGCPhysEnumCallbackCount(TESTNODE *pNode, void *pvUser)
    11271137{
     
    13161326        if (rc != VINF_SUCCESS)
    13171327            RTTestIFailed("enumeration after linear insert failed: %Rrc", rc);
     1328
     1329        Expect -= 4;
     1330        rc = Tree.doWithAllFromRight(&Allocator, hardAvlRangeTreeGCPhysEnumCallbackDescBy4, &Expect);
     1331        if (rc != VINF_SUCCESS)
     1332            RTTestIFailed("enumeration after linear insert failed: %Rrc", rc);
    13181333    }
    13191334
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