]> Nishi Git Mirror - gwion.git/commitdiff
:art: Add float not
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 19:27:53 +0000 (21:27 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 19:27:53 +0000 (21:27 +0200)
src/lib/prim.c

index f7085b690bd1f77ccc41e9a192956609fcfcf492..eaf7dbb03b65c9b50cdc82aaad7d3046604230a6 100644 (file)
@@ -270,6 +270,9 @@ static GWION_IMPORT(float) {
   GWI_BB(gwi_oper_end(gwi, "::",         int_float_mul))
   GWI_BB(gwi_oper_ini(gwi, "float", "dur", "dur"))
   GWI_BB(gwi_oper_end(gwi, "::",         FloatTimes))
+  GWI_BB(gwi_oper_ini(gwi, NULL,   "float", "bool"))
+  GWI_BB(gwi_oper_add(gwi, opck_unary_meta2)) // should return bool
+  GWI_BB(gwi_oper_end(gwi,  "!", float_not))
   return GW_OK;
 }