3 ms·
Virtually every language has a mode to make calls into the C ABI. That's exactly the point of the article. To switch in to C ABI mode in C++ you have to wrap
by wheels 4y ago
Virtually every language has a mode to make calls into the C ABI. That's exactly the point of the article.
To switch in to C ABI mode in C++ you have to wrap the declarations in 'extern "C" { ... }' blocks, otherwise you get the C++ ABI, not the C ABI. It's done similarly in many other languages.