I have a situation where I need to document the bsearch() signature in Doxygen. That signature looks like this:
void * __cdecl bsearch (
const void *key,
const void *base,
size_t num,
size_t width,
int(__cdecl *compare)(const void *, const void *)
)
The problem I am having is how to compose the @param command for the pointer *compare since Doxygen complains "argument 'compare' of command @param is not found in the argument list of bsearch" at everything I throw at it.
This is a standalone implementation, so it is not dependent on a library signature, however I am thinking if I did:
typedef int(__cdecl *pcompare)(const void *, const void *);
changing the signature to pcompare compare that callers using the standard signature would have a type problem.
I am open to ANY solution that allows me to document this without alarm from Doxygen.