From 120b604abd617c01b485a432a4838d437153ea36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 21 May 2017 18:48:21 +0200 Subject: Fix "unless" Best of all is, I don't even know why it must be like that. --- ell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ell.c b/ell.c index 541aefe..bb85e23 100644 --- a/ell.c +++ b/ell.c @@ -1246,8 +1246,7 @@ init_runtime_library (struct context *ctx) { const char *name; ///< Name of the function const char *definition; ///< The defining script } functions[] = { - // FIXME: this "unless" is probably not going to work - { "unless", "arg _cond _body; if (not (eval @_cond)) @_body" }, + { "unless", "arg _cond _body; if (not (@_cond)) @_body" }, // TODO: we should be able to apply them to all arguments { "ne?", "arg _ne1 _ne2; not (eq? @_ne1 @_ne2)" }, { "ge?", "arg _ge1 _ge2; not (lt? @_ge1 @_ge2)" }, -- cgit v1.2.3