X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fstatic.qh;h=e1879890e8521dfe9c5173c209aee501c89da628;hb=713982af4af36b6a4209dab3dcc78e43037d5986;hp=6f511fcecfa1c9c1f2ef842ad5fe47ac44fbd7ef;hpb=a1372cef7e6aa5fc6f92777b990c8adbf4723d19;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/static.qh b/qcsrc/lib/static.qh index 6f511fcec..e1879890e 100644 --- a/qcsrc/lib/static.qh +++ b/qcsrc/lib/static.qh @@ -17,7 +17,9 @@ void profile(string s) } #define _STATIC_INIT(func, where) \ - [[accumulate]] void _static_##func() { profile(#func); } \ + /* ACCUMULATE void _static_##func##profile() { profile(#func); } */ \ + /* ACCUMULATE_FUNCTION(where, _static_##func##profile) */ \ + ACCUMULATE void _static_##func(); \ ACCUMULATE_FUNCTION(where, _static_##func) \ void _static_##func()