We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db14b9 commit 1a6c882Copy full SHA for 1a6c882
base/error.jl
@@ -202,7 +202,7 @@ julia> @assert isodd(3) "What even are numbers?"
202
```
203
"""
204
macro assert(ex, msgs...)
205
- @isdefined(isdebug) && !(isdebug()) && return nothing
+ isdefined(@__MODULE__, :isdebug) && !(isdebug()) && return nothing
206
msg = isempty(msgs) ? ex : msgs[1]
207
if isa(msg, AbstractString)
208
msg = msg # pass-through
0 commit comments