jmp_buf env;
if (!setjmp(env)) /* try - something might go wrong in the subsequent code block (try block) better bookmark this line */
longjmp(env, 1); /* throw an exception trigger the catch (else) block by going back to that bookmarked line */
else /* catch */
fprintf(stderr, "Yikes, something went wrong! ;)\n");
return 0;
} /* Eliminate player */
return 666;
} /* Follow player */
return 007;
} if (strategy_to_use == 0)
return &game_strategy1;
return &game_strategy2;
}
Thank you! :)