From: TimePath Date: Thu, 27 Aug 2015 07:28:28 +0000 (+0000) Subject: Merge branch 'TimePath/structs' into 'master' X-Git-Tag: xonotic-v0.8.2~2014 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=89b0810f80f6fc223d0ab779da6c897b72b6e678;p=xonotic%2Fxonotic-data.pk3dir.git Merge branch 'TimePath/structs' into 'master' Struct support Example: ```c #define STRUCT_PAIR(_, my) \ _(my, first, float, ) \ _(my, second, float, END) // END is required STRUCT(PAIR, STRUCT_PAIR) STRUCT_DECLARE(last, STRUCT_PAIR) // no semicolon because gmqcc won't allow it void test(STRUCT_PARAM(in, STRUCT_PAIR)) { STRUCT_DECLARE(local, STRUCT_PAIR); local_first = in_second; local_second = in_first; STRUCT_STORE(local, last, STRUCT_PAIR); // local goes to last next(STRUCT_PASS(local, STRUCT_PAIR)); } ``` See merge request !183 --- 89b0810f80f6fc223d0ab779da6c897b72b6e678