mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 12:51:04 +00:00
20 lines
491 B
C++
20 lines
491 B
C++
|
/* this is the WIP test for the parser...
|
||
|
* constantly adding stuff here to see if things break
|
||
|
*/
|
||
|
void(string) print = #1;
|
||
|
void(string,string) print2 = #1;
|
||
|
void(string,string,string) print3 = #1;
|
||
|
string(float) ftos = #2;
|
||
|
entity() spawn = #3;
|
||
|
void(entity) kill = #4;
|
||
|
|
||
|
float(vector different_name, vector b) dot;
|
||
|
|
||
|
float(vector a, vector b) dot = {
|
||
|
return a * b;
|
||
|
};
|
||
|
|
||
|
void() main = {
|
||
|
print3("should be 1: ", ftos(dot('1 1 0', '1 0 0')), "\n");
|
||
|
};
|