mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
13 lines
208 B
C++
13 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");
|
|
}
|