mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
24 lines
203 B
R
24 lines
203 B
R
|
void exit (int code) = #0;
|
||
|
|
||
|
int foo;
|
||
|
|
||
|
int calc_foo (void)
|
||
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
void check_foo (void)
|
||
|
{
|
||
|
if (foo)
|
||
|
exit (0);
|
||
|
exit (1);
|
||
|
}
|
||
|
|
||
|
int main ()
|
||
|
{
|
||
|
while (1) {
|
||
|
foo = calc_foo ();
|
||
|
check_foo ();
|
||
|
}
|
||
|
}
|