2
votes

When using MS C or GNU C where you need to use __cdecl, function pointer prototypes look like:

  • typedef int (__cdecl *funcname_ptr)(void* arg1, const char* arg2);
  • typedef int(__attribute__((cdecl)) *funcname_ptr)(void* arg1, const char* arg2);

It seems that the text prior to *funcname_ptr causes doxygen's parser to fail.

If you have run into this issue, have you found a workaround?

1

1 Answers

1
votes

I haven't encountered this problem, but one workaround may be to predefine __cdecl as a macro that evaluates to nothing in the doxygen configuration file using the PREDEFINED option.