MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / validateParentageRecurse

Function validateParentageRecurse

Engine/source/platform/platformMemory.cpp:407–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static void validateParentageRecurse(TreeNode *tree)
408{
409 if(tree->left != NIL)
410 {
411 if(tree->left->parent != tree)
412 Platform::debugBreak();
413
414 if(tree->left->size > tree->size)
415 Platform::debugBreak();
416 validateParentageRecurse(tree->left);
417 }
418 if(tree->right != NIL)
419 {
420 if(tree->right->parent != tree)
421 Platform::debugBreak();
422
423 if(tree->right->size < tree->size)
424 Platform::debugBreak();
425 validateParentageRecurse(tree->right);
426 }
427}
428
429static void validateTree()
430{

Callers 1

validateTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected