Is there any library exporting APIs with different calling conventions?

42 Views Asked by At

Is there any example of a library exporting functions with different calling conventions, e.g. api_foo() with __cdecl and api_bar() with __stdcall, both in the same public API namespace?

My questions are ...

  • if this is possible in principle
  • if it also happens in practice, and in that case when/why you would use it

I'm asking on behalf of a python ctypes wrapper generator, wondering if we need to support this case.

0

There are 0 best solutions below