You can't document a macro as a function (see http://build.opencv.org/builders/precommit_docs/builds/7598). You can probably just mention it in the text.