mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
20 lines
305 B
C++
20 lines
305 B
C++
void(string, string) print = #1;
|
|
entity() spawn = #3;
|
|
|
|
.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");
|
|
};
|