mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 08:22:13 +00:00
14 lines
208 B
C++
14 lines
208 B
C++
|
.float field;
|
||
|
|
||
|
.float getfield() {
|
||
|
return field;
|
||
|
}
|
||
|
|
||
|
void() main = {
|
||
|
entity e = spawn();
|
||
|
e.field = 42;
|
||
|
print(ftos(e.(getfield())), "\n");
|
||
|
.float memptr = getfield();
|
||
|
print(ftos(e.memptr), "\n");
|
||
|
}
|