I am debugging code that looks like this:
while (true){
size_t i = foo();
if (flag_set) break;
}
I want to break the function call foo (), call it several times, and then completely jump out of the while loop (suppose we are guaranteed that the flag will be set so that we can break out of the loop.
How to completely break out of the cycle ?. completion simply proceeds to the next iteration. I want to do this to exit the current “code snippet” (in this case, the while loop)
source
share