On 16/09/14 02:06, AsmMan wrote:

Neither assert or return will help. Check out this code example:

void main() {
f();
}

void f() {
   if(!foo)
     exit(1);
    do_something();
}

If you want to exit the application with exit code 1 then it sounds like something has gone wrong. In that case, throw an exception instead.

--
/Jacob Carlborg

Reply via email to