mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-03 17:11:57 +00:00
15 lines
433 B
C++
15 lines
433 B
C++
|
void(string, ...) print = #1;
|
||
|
string(float) ftos = #2;
|
||
|
string(vector) vtos = #5;
|
||
|
|
||
|
void(float a, float b) main = {
|
||
|
print("input: ", ftos(a), " and ", ftos(b), "\n");
|
||
|
print("+ ", ftos(a+b), "\n");
|
||
|
print("* ", ftos(a*b), "\n");
|
||
|
print("/ ", ftos(a/b), "\n");
|
||
|
print("& ", ftos(a&b), "\n");
|
||
|
print("| ", ftos(a|b), "\n");
|
||
|
print("&& ", ftos(a&&b), "\n");
|
||
|
print("|| ", ftos(a||b), "\n");
|
||
|
};
|