RMW desert 1.0
Loading...
Searching...
No Matches
Macros
macros.h File Reference

Header containing C sequence macros. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPECIALIZE_GENERIC_C_SEQUENCE(C_NAME, C_TYPE)
 

Detailed Description

Header containing C sequence macros.

The C data type implementation is more complicated than the C++ one, because complex types like vectors have to be manually managed and this header contains definitions used to create dynamic element sequences.

Author
Prof. Davide Costa

Macro Definition Documentation

◆ SPECIALIZE_GENERIC_C_SEQUENCE

#define SPECIALIZE_GENERIC_C_SEQUENCE (   C_NAME,
  C_TYPE 
)
Value:
template<> \
struct GenericCSequence<C_TYPE> \
{ \
using type = rosidl_runtime_c__ ## C_NAME ## __Sequence; \
\
static void fini(type * sequence) { \
rosidl_runtime_c__ ## C_NAME ## __Sequence__fini(sequence); \
} \
\
static bool init(type * sequence, size_t size) { \
return rosidl_runtime_c__ ## C_NAME ## __Sequence__init(sequence, size); \
} \
};
Definition macros.h:58