Function next [src]
Prototype
pub fn next(it: *StackIterator) ?usize
Parameters
it: *StackIterator
Source
pub fn next(it: *StackIterator) ?usize {
var address = it.next_internal() orelse return null;
if (it.first_address) |first_address| {
while (address != first_address) {
address = it.next_internal() orelse return null;
}
it.first_address = null;
}
return address;
}