Skip to content

Commit 8afc2c7

Browse files
committed
note re double-execution of condition in macro ensure
1 parent 9e911d7 commit 8afc2c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/debug.jl

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ macro ensure(condition, msg = string(condition))
7979
ls, rs = string(l), string(r)
8080
return esc(quote
8181
if ! $condition
82+
# FIXME double-execution of condition l and r!
8283
throw(postcondition_error($msg, backtrace()[1],
8384
$ls, $l, $rs, $r))
8485
end

0 commit comments

Comments
 (0)