]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/defs.qh
catch broken vector member access
[xonotic/gmqcc.git] / tests / defs.qh
1 // builtins for the standalone qcvm included with gmqcc
2 // in exec.c  These should be updated to reflect the new
3 // builtins.  I no event shall you even consider adding
4 // these individually per test.
5
6 void   (string str, ...)          print     = #1;
7 string (float val)                ftos      = #2;
8 entity ()                         spawn     = #3;
9 void   (entity ent)               kill      = #4;
10 string (vector vec)               vtos      = #5;
11 void   (string str)               error     = #6;
12 float  (vector vec)               vlen      = #7;
13 string (entity ent)               etos      = #8;
14 float  (string str)               stof      = #9;
15 string (...)                      strcat    = #10;
16 float  (string str1, string str2) strcmp    = #11;
17 vector (vector vec)               normalize = #12;
18 float  (float val)                sqrt      = #13;
19 float  (float val)                floor     = #14;
20 float  (float val1, float val2)   pow       = #15;
21 vector (string str)               stov      = #16;