Change #if to #ifdef. (#229)
Needed because you can't use preprocessor on undefined variables in MISRA.
This commit is contained in:
parent
5142a8a4b4
commit
e8491ab8ab
48 changed files with 95 additions and 95 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "rcl_lifecycle/visibility_control.h"
|
||||
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
@ -82,7 +82,7 @@ typedef struct rcl_lifecycle_state_machine_t
|
|||
rcl_lifecycle_com_interface_t com_interface;
|
||||
} rcl_lifecycle_state_machine_t;
|
||||
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef RCL_LIFECYCLE__RCL_LIFECYCLE_H_
|
||||
#define RCL_LIFECYCLE__RCL_LIFECYCLE_H_
|
||||
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
@ -135,7 +135,7 @@ RCL_LIFECYCLE_PUBLIC
|
|||
void
|
||||
rcl_print_state_machine(const rcl_lifecycle_state_machine_t * state_machine);
|
||||
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif // extern "C"
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "rcl_lifecycle/data_types.h"
|
||||
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
@ -74,7 +74,7 @@ rcl_lifecycle_get_transitions(
|
|||
rcl_lifecycle_transition_map_t * transition_map,
|
||||
unsigned int state_id);
|
||||
|
||||
#if __cplusplus
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue