Re: [julia-users] How to check whether a macro is defined

2016-05-13 Thread Isaiah Norton
julia> isdefined(symbol("@inline"))
true

On Fri, May 13, 2016 at 6:11 AM,  wrote:

> to suppress some annoying method overwritten warnings, I found a useful
> @nowarn macro.
> However, I need to check whether this macro is defined and include the
> definition if not.
>
> Question, how to check whether a macro is defined?
>
> If one thread can ask multiple questions, I'm also interested in
> how to suppress warnings? especially those relates to redefinition.
>
> Thanks!
>


[julia-users] How to check whether a macro is defined

2016-05-13 Thread lovebufan
to suppress some annoying method overwritten warnings, I found a useful 
@nowarn macro.
However, I need to check whether this macro is defined and include the 
definition if not.

Question, how to check whether a macro is defined?

If one thread can ask multiple questions, I'm also interested in
how to suppress warnings? especially those relates to redefinition.

Thanks!