aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-21 18:48:21 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-21 18:48:57 +0200
commit120b604abd617c01b485a432a4838d437153ea36 (patch)
tree3efed3eea85c9eec5c52fcdddee1a98e39955168
parent2224ca00ad48fd20aae7d7cd5f7c39e19869d8a2 (diff)
downloadell-120b604abd617c01b485a432a4838d437153ea36.tar.gz
ell-120b604abd617c01b485a432a4838d437153ea36.tar.xz
ell-120b604abd617c01b485a432a4838d437153ea36.zip
Fix "unless"
Best of all is, I don't even know why it must be like that.
-rw-r--r--ell.c3
1 files changed, 1 insertions, 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)" },