]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Simplify
authorDale Weiler <killfieldengine@gmail.com>
Sat, 23 Nov 2013 12:27:09 +0000 (07:27 -0500)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 23 Nov 2013 12:27:09 +0000 (07:27 -0500)
intrin.c

index 9bd820906757273af4b124a4d0a58eea8126c260..acd38462e8563e496e6de84f15fd8c0a1caf6f95 100644 (file)
--- 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;
 }