]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/fieldfuncs.qc
remove a bunch of unnecessary c-casts to ast_expression*
[xonotic/gmqcc.git] / tests / fieldfuncs.qc
1 .float field;
2
3 .float getfield() {
4   return field;
5 }
6
7 void() main = {
8   entity e = spawn();
9   e.field = 42;
10   print(ftos(e.(getfield())), "\n");
11   .float memptr = getfield();
12   print(ftos(e.memptr), "\n");
13 }