]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/fieldparams.qc
enum testcase
[xonotic/gmqcc.git] / tests / fieldparams.qc
1 void(string, string) print = #1;
2 entity() spawn = #3;
3
4 .string a;
5 .string b;
6 ..string ps;
7
8 void(entity e, .string s) callout = {
9     print(e.s, "\n");
10 };
11
12 void() main = {
13     local entity e;
14     e = spawn();
15     e.a = "foo";
16     e.b = "bar";
17     callout(e, b);
18     e.ps = a;
19     print(e.(e.ps), "\n");
20 };