From: fennecdjay Date: Wed, 9 Oct 2019 19:17:08 +0000 (+0200) Subject: :shirt: remove fptr call protext X-Git-Tag: nightly~2198^2~75 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=927b53e318fe40b6901bb3095667735ee787953a;p=gwion.git :shirt: remove fptr call protext --- diff --git a/src/lib/func.c b/src/lib/func.c index 0d6d509e..0a284176 100644 --- a/src/lib/func.c +++ b/src/lib/func.c @@ -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;