NASA-AMMOS / anms-camp

C code generator for AMP
https://anms-camp.readthedocs.io/en/latest/
Apache License 2.0
1 stars 2 forks source link

C headers don't have C++ extern wrapper #2

Closed BrianSipos closed 10 months ago

BrianSipos commented 1 year ago

C headers should include an "extern" wrapper between their own includes and the end include guard. Without these the header is unusable with a C++ compilation unit.

For example:

#include "..."

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

#endif /* GUARD_H */