Check whether a macro is defined

I want a function (or macro) macro_is_defined which will return true if and only if the macro SomeModule.@some_macro is defined.

Does isdefined(SomeModule, Symbol("@some_macro")) work?

1 Like