mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
17 lines
250 B
C++
17 lines
250 B
C++
.string a;
|
|
.string b;
|
|
..string ps;
|
|
|
|
void(entity e, .string s) callout = {
|
|
print(e.s, "\n");
|
|
};
|
|
|
|
void() main = {
|
|
local entity e;
|
|
e = spawn();
|
|
e.a = "foo";
|
|
e.b = "bar";
|
|
callout(e, b);
|
|
e.ps = a;
|
|
print(e.(e.ps), "\n");
|
|
};
|