Iterate all Features (of tree) without recursion

Is there a possibility to iterate all Features of a Part without recursion of the feature tree?

SolidworksApi macros