... | ... | @@ -367,7 +367,8 @@ void foo(void); |
|
|
The following block of code is required so that C++ code can use C header files and call the C code. Please note that this is only required in header files and not required in source files.
|
|
|
|
|
|
```c
|
|
|
#pragma once
|
|
|
#ifndef SIBROS__<FILE_NAME>_H
|
|
|
#define SIBROS__<FILE_NAME>_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
extern "C" {
|
... | ... | @@ -378,6 +379,8 @@ void foo(void); |
|
|
#ifdef __cplusplus
|
|
|
} /* extern "C" */
|
|
|
#endif
|
|
|
|
|
|
#endif /* #ifndef SIBROS__<FILE_NAME>_H */
|
|
|
```
|
|
|
|
|
|
## Order of Includes
|
... | ... | |