mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-19 00:41:43 +00:00
14 lines
433 B
C++
14 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");
|
|
};
|