Returns the index of the parent loop, related to the specified loop.
Parameters
Parameters
Description
curLoop
[in] Specified loop index.
Returns
Non-negative index if the loop is found, or -1 if the specified loop does not have a parent loop, or -2 if the specified loop does not exist, or -3 if the specified loop intersects with a possible outer loop.