From: Dale Weiler Date: Thu, 1 Aug 2013 07:12:21 +0000 (+0000) Subject: Disable the macros to keep clang happy (just uncomment them for when more constant... X-Git-Tag: v0.3.0~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=db69d14995fef917871f606692f172588571940a;p=xonotic%2Fgmqcc.git Disable the macros to keep clang happy (just uncomment them for when more constant folding optimizations need them) --- diff --git a/fold.c b/fold.c index d0802f4..52bedae 100644 --- a/fold.c +++ b/fold.c @@ -603,13 +603,13 @@ ast_expression *fold_op(fold_t *fold, const oper_info *info, ast_expression **op #undef fold_can_2 #define isfloat(X) ((X)->vtype == TYPE_FLOAT) -#define isstring(X) ((X)->vtype == TYPE_STRING) -#define isvector(X) ((X)->vtype == TYPE_VECTOR) +/*#define isstring(X) ((X)->vtype == TYPE_STRING)*/ +/*#define isvector(X) ((X)->vtype == TYPE_VECTOR)*/ #define fold_immvalue_float(X) ((X)->constval.vfloat) -#define fold_immvalue_vector(X) ((X)->constval.vvec) -#define fold_immvalue_string(X) ((X)->constval.vstring) +/*#define fold_immvalue_vector(X) ((X)->constval.vvec)*/ +/*#define fold_immvalue_string(X) ((X)->constval.vstring)*/ #define fold_can_1(X) ((X)->hasvalue && (X)->cvq == CV_CONST) -#define fold_can_2(X,Y) (fold_can_1(X) && fold_can_1(Y)) +/*#define fold_can_2(X,Y) (fold_can_1(X) && fold_can_1(Y))*/ int fold_cond(ir_value *condval, ast_function *func, ast_ifthen *branch) {