From: Dale Weiler Date: Sat, 23 Nov 2013 12:27:09 +0000 (-0500) Subject: Simplify X-Git-Tag: xonotic-v0.8.0~77 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c68a5c29e1b077416f91d538419891584275fe70;p=xonotic%2Fgmqcc.git Simplify --- diff --git a/intrin.c b/intrin.c index 9bd8209..acd3846 100644 --- a/intrin.c +++ b/intrin.c @@ -73,10 +73,7 @@ static GMQCC_INLINE void intrin_reg(intrin_t *intrin, ast_value *const value, as static ast_expression *intrin_func_self(intrin_t *intrin, const char *name, const char *from); static ast_expression *intrin_nullfunc(intrin_t *intrin) { ast_value *value = NULL; - ast_function *func = intrin_value(intrin, &value, "nil", TYPE_VOID); - - vec_push(func->blocks, ast_block_new(intrin_ctx(intrin))); - + ast_function *func = intrin_value(intrin, &value, NULL, TYPE_VOID); intrin_reg(intrin, value, func); return (ast_expression*)value; }