3 ms·
Doesn’t work in a lot of cases unfortunately. If you’re writing a library designed to be consumed by other languages you’re stuck with writing C abi compatible
by Spivak 5y ago
Doesn’t work in a lot of cases unfortunately. If you’re writing a library designed to be consumed by other languages you’re stuck with writing C abi compatible code which can be written in other languages that can “extern” them but it puts limits on what’s possible in those libraries.
- WalterBright 5y agoOne thing I do is to make my own interface to the 3rd party library with the ugly interface. Then that interface file is only one that sees it. It also may be true that one can't replace every use of the preprocessor. That shouldn't stop replacing what one can.