]> Nishi Git Mirror - gwion.git/commitdiff
:shirt: remove fptr call protext
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 19:17:08 +0000 (21:17 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 19:17:08 +0000 (21:17 +0200)
src/lib/func.c

index 0d6d509ecae4f2366ecd39e0e7fd315bd12ac524..0a2841762c35c2edafa669dc8142b4b85c327331 100644 (file)
@@ -25,8 +25,6 @@ static INSTR(LambdaAssign) {
 
 static OP_CHECK(opck_func_call) {
   Exp_Binary* bin = (Exp_Binary*)data;
-  if(bin->rhs->exp_type == ae_exp_decl)
-    ERR_N(bin->rhs->pos, _("calling fptr decl, this is forbidden."))
   Exp_Call call = { .func=bin->rhs, .args=bin->lhs };
   Exp e = exp_self(bin);
   e->exp_type = ae_exp_call;