From: Jérémie Astor Date: Mon, 30 Nov 2020 19:07:35 +0000 (+0100) Subject: :art: Clean event.c X-Git-Tag: nightly~1140^2~10 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d1eb80cd57a2d62b673b80411e6d2b319a8a0f5e;p=gwion.git :art: Clean event.c --- diff --git a/src/lib/event.c b/src/lib/event.c index 2c3818f4..d025f716 100644 --- a/src/lib/event.c +++ b/src/lib/event.c @@ -17,10 +17,6 @@ static DTOR(event_dtor) { free_vector(shred->info->mp, EV_SHREDS(o)); } -static OP_CHECK(opck_eventwait) { - return env->gwion->type[et_int]; -} - static INSTR(EventWait) { POP_REG(shred, SZ_FLOAT); const M_Object event = *(M_Object*)REG(-SZ_INT); @@ -65,6 +61,6 @@ GWION_IMPORT(event) { GWI_BB(gwi_func_end(gwi, event_broadcast, ae_flag_none)) GWI_BB(gwi_class_end(gwi)) GWI_BB(gwi_oper_ini(gwi, "nonnull Event", "@now", "int")) - _CHECK_OP("=>", eventwait, EventWait) + GWI_BB(gwi_oper_end(gwi, "=>", EventWait)) return GW_OK; }