mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
26 lines
453 B
C++
26 lines
453 B
C++
void print(...) = #1;
|
|
string ftos (float) = #2;
|
|
|
|
void test(float brkat, float contat) {
|
|
float i;
|
|
|
|
for (i = 0; i < 10; i += 1) {
|
|
if (i == contat) {
|
|
print("ct ");
|
|
continue;
|
|
}
|
|
print(ftos(i), " ");
|
|
if (i == brkat) {
|
|
print("brk ");
|
|
break;
|
|
}
|
|
}
|
|
print("end\n");
|
|
}
|
|
|
|
void main() {
|
|
test(-1, -1);
|
|
test( 3, -1);
|
|
test(-1, 3);
|
|
test( 5, 2);
|
|
}
|