]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/typedefs.qc
local compile-time const values are now created as globals, thus they're now subject...
[xonotic/gmqcc.git] / tests / typedefs.qc
1 typedef void(...)     ptype;
2 typedef string(float) funcsf;
3
4 ptype print = #1;
5 funcsf ftos = #2;
6
7 void main() {
8     typedef float funcsf;
9     funcsf a;
10     a = 0;
11     print("A typedeffed function, 0=", ftos(a), "\n");
12 }