mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-11 04:51:24 +00:00
22 lines
750 B
C++
22 lines
750 B
C++
|
void print(...) = #1;
|
||
|
string ftos (float) = #2;
|
||
|
|
||
|
void test(vector a, vector b) {
|
||
|
print(ftos((a && b) + (a && b)), " ");
|
||
|
print(ftos((a || b) + (a || b)), " ");
|
||
|
print(ftos((a && b) + (a || b)), "\n");
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
print("X & | B\n");
|
||
|
print("0 0 0, 0 0 0 :: "); test('0 0 0', '0 0 0');
|
||
|
print("0 0 0, 5 0 0 :: "); test('0 0 0', '5 0 0');
|
||
|
print("5 0 0, 0 0 0 :: "); test('5 0 0', '0 0 0');
|
||
|
print("5 0 0, 5 0 0 :: "); test('5 0 0', '5 0 0');
|
||
|
print("Y & | B\n");
|
||
|
print("0 0 0, 0 0 0 :: "); test('0 0 0', '0 0 0');
|
||
|
print("0 0 0, 0 5 0 :: "); test('0 0 0', '0 5 0');
|
||
|
print("0 5 0, 0 0 0 :: "); test('0 5 0', '0 0 0');
|
||
|
print("0 5 0, 0 5 0 :: "); test('0 5 0', '0 5 0');
|
||
|
}
|