From: terencehill Date: Mon, 19 Mar 2018 18:05:47 +0000 (+0100) Subject: Fix duplicated [[accumulate]] X-Git-Tag: xonotic-v0.8.5~2222 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d1f4c5f6d41e193c93e4ecebb80ac869f4ee1bb;p=xonotic%2Fxonotic-data.pk3dir.git Fix duplicated [[accumulate]] --- diff --git a/qcsrc/lib/registry.qh b/qcsrc/lib/registry.qh index 2d41e5d43..306a107d7 100644 --- a/qcsrc/lib/registry.qh +++ b/qcsrc/lib/registry.qh @@ -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); } \