We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extern "C"
When mixing C and C++, it's customary to put after the include guard:
#if defined(__cplusplus) extern "C" { #endif
lovok/include/lovok.h
Line 3 in 8ef115f
and at the end of the file:
#if defined(__cplusplus) } #endif
Line 9 in 8ef115f
This tells the C++ compiler to not "name mangle" the symbols, i.e. to give them C linkage.
You don't need to do this around private headers involving C++ and classes etc. I would only suggest this for the public header.
The text was updated successfully, but these errors were encountered:
smiller1212
No branches or pull requests
When mixing C and C++, it's customary to put after the include guard:
lovok/include/lovok.h
Line 3 in 8ef115f
and at the end of the file:
lovok/include/lovok.h
Line 9 in 8ef115f
This tells the C++ compiler to not "name mangle" the symbols, i.e. to give them C linkage.
You don't need to do this around private headers involving C++ and classes etc. I would only suggest this for the public header.
The text was updated successfully, but these errors were encountered: