# modifying PrintDescribeMacro of doc.sty

I would like to redefine the command PrintDescribeMacroof doc.sty in order to create a label that I can link to using hyperref.

However whenever I add a label to the command I get an error

\ifcsdef{PrintDescribeMacro}
{\def\PrintDescribeMacro#1{%
\label{doc:desc:#1}%
\strut \MacroFont %
\color{doctools@ColorCodeNames} \string #1\ }}{}


because the label is created with a different content than what I expect

\newlabel{doc:desc:\unhbox \voidb@x \relax \begingroup \catcode \spacefactor
\@m 11\relax \par }{{1}{3}{Commands provided by doc.sty and ltxdoc}{MacroName.1}{}}
`

Any better idea how to modify the commands of doc.sty?

-