]> Nishi Git Mirror - gwion.git/commitdiff
:art: Clean event.c
authorJérémie Astor <fennecdjay@gmail.com>
Mon, 30 Nov 2020 19:07:35 +0000 (20:07 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Mon, 30 Nov 2020 19:07:35 +0000 (20:07 +0100)
src/lib/event.c

index 2c3818f40730d941acae6aa6d36e895511cd227c..d025f7160b923c4febba3f9c6b261d58efd42856 100644 (file)
@@ -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;
 }