rmw_fastrtps_dynamic_cpp  master
Implement the ROS middleware interface using eProsima FastRTPS dynamic code generation in C++.
All Classes Namespaces Files Functions Variables Typedefs Macros
Macros
macros.hpp File Reference
#include <limits>
#include <string>
Include dependency graph for macros.hpp:
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)
 

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 * array) { \
rosidl_runtime_c__ ## C_NAME ## __Sequence__fini(array); \
} \
\
static bool init(type * array, size_t size) { \
return rosidl_runtime_c__ ## C_NAME ## __Sequence__init(array, size); \
} \
};