From: terencehill Date: Fri, 30 Mar 2018 13:31:47 +0000 (+0200) Subject: Remove redundant code from ATTRIB_3 X-Git-Tag: xonotic-v0.8.5~2214 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a4dc4357e29f673574b804713740184306a162b6;p=xonotic%2Fxonotic-data.pk3dir.git Remove redundant code from ATTRIB_3 --- diff --git a/qcsrc/lib/oo.qh b/qcsrc/lib/oo.qh index f57bf8e90..bd1d34666 100644 --- a/qcsrc/lib/oo.qh +++ b/qcsrc/lib/oo.qh @@ -237,7 +237,7 @@ STATIC_INIT(RegisterClasses) #define ATTRIB(...) EVAL_ATTRIB(OVERLOAD_(ATTRIB, __VA_ARGS__)) #define EVAL_ATTRIB(...) __VA_ARGS__ -#define ATTRIB_3(cname, name, type) INIT(cname) {} class(cname) .type name +#define ATTRIB_3(cname, name, type) class(cname) .type name #define ATTRIB_4(cname, name, type, val) \ ATTRIB_3(cname, name, type); \ INIT(cname) \