codebase:add_cpp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
codebase:add_cpp [2017/05/25 03:23] – vodur | codebase:add_cpp [2019/07/13 06:16] (current) – vodur | ||
---|---|---|---|
Line 21: | Line 21: | ||
To access C functions from C++, C++ code will need to include the C headers (wrapping in extern " | To access C functions from C++, C++ code will need to include the C headers (wrapping in extern " | ||
- | To access C++ functions from C, C++ needs to define | + | To access C++ functions from C, C++ needs to declare |
The extern " | The extern " | ||
Line 92: | Line 92: | ||
Basically, C++ is not guaranteed to be implemented as a char but it generally is, and almost certainly is and always will be when using GCC. We can even add the static asserts as above just for some peace of mind. | Basically, C++ is not guaranteed to be implemented as a char but it generally is, and almost certainly is and always will be when using GCC. We can even add the static asserts as above just for some peace of mind. | ||
+ | |||
+ | [[https:// | ||
codebase/add_cpp.1495682599.txt.gz · Last modified: 2017/05/25 03:23 by vodur