How can I check whether a function is extern-C?

135 Views Asked by At

In C++, can I check whether a certain function has been declared "extern C" or not?

  • I don't mind checks restricted to the current translation unit.
  • I'd like to check this at compile-time, but if this is somehow possible only at run-time, that's useful too.
  • Non-standard, compiler-extension-based solutions are relevant.
0

There are 0 best solutions below