]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move LAMBDA
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 12 May 2015 07:07:27 +0000 (17:07 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 12 May 2015 07:07:27 +0000 (17:07 +1000)
qcsrc/common/items/item.qh
qcsrc/common/util-pre.qh

index 1c8939beb09800d497c9eab75f581c3bcc981075..0434a46296ea808d2071e550f5f8508cb9da7f79 100644 (file)
@@ -7,8 +7,6 @@ ENDCLASS(GameItem)
 
 
 
 
 
 
-#define LAMBDA(...) { __VA_ARGS__ ; }
-
 #define ITEM_SIGNALS(_) \
     _(Default, void, (entity it), LAMBDA({ it.respondTo(it, SIGNAL); })) \
     /* Common item signals */
 #define ITEM_SIGNALS(_) \
     _(Default, void, (entity it), LAMBDA({ it.respondTo(it, SIGNAL); })) \
     /* Common item signals */
index 45a37302274e7ebffbef036f49f16e8119c22581..053261b10efac17e04a7bc79acc356751c8e23d4 100644 (file)
@@ -58,6 +58,8 @@
     #define OVERLOAD(F, ...) OVERLOAD_(F,__VA_ARGS__,9,8,7,6,5,4,3,2,1)(__VA_ARGS__)
 #endif
 
     #define OVERLOAD(F, ...) OVERLOAD_(F,__VA_ARGS__,9,8,7,6,5,4,3,2,1)(__VA_ARGS__)
 #endif
 
+#define LAMBDA(...) { __VA_ARGS__ ; }
+
 #define MAP(f, ...) OVERLOAD(MAP, f, __VA_ARGS__)
 #define MAP_2(f, it) f(it)
 #define MAP_3(f, it, ...) f(it)MAP_2(f, __VA_ARGS__)
 #define MAP(f, ...) OVERLOAD(MAP, f, __VA_ARGS__)
 #define MAP_2(f, it) f(it)
 #define MAP_3(f, it, ...) f(it)MAP_2(f, __VA_ARGS__)