]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix duplicated [[accumulate]]
authorterencehill <piuntn@gmail.com>
Mon, 19 Mar 2018 18:05:47 +0000 (19:05 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 19 Mar 2018 18:05:47 +0000 (19:05 +0100)
qcsrc/lib/registry.qh

index 2d41e5d431b3ba9c7b63ccbb87268a4b96615267..306a107d7e722bc4b6706bd447249d0588e1a694 100644 (file)
@@ -23,8 +23,8 @@
 #define REGISTRY(id, max) \
        void Register##id(); \
        [[accumulate]] void REGISTRY_DEPENDS_(id) {} \
-       [[accumulate]] REGISTRY_BEGIN(id) {} \
-       [[accumulate]] REGISTRY_END(id) {} \
+       REGISTRY_BEGIN(id) {} \
+       REGISTRY_END(id) {} \
        void _Register##id() {} \
        int id##_state = 0; \
        void Register##id() { if (id##_state) return; id##_state = 1; REGISTRY_DEPENDS_(id); REGISTRY_BEGIN_(id); _Register##id(); id##_state = 2; REGISTRY_END_(id); } \