Fixed error in macro definition

This commit is contained in:
Eric Katzfey 2024-02-27 20:12:59 -08:00
parent bb617a1a56
commit 4a043a80f1
1 changed files with 3 additions and 3 deletions

View File

@ -109,17 +109,17 @@ typedef const struct orb_metadata *orb_id_t;
* @param _queue_size Queue size for remote topics in communicator interface * @param _queue_size Queue size for remote topics in communicator interface
*/ */
#ifdef CONFIG_ORB_COMMUNICATOR #ifdef CONFIG_ORB_COMMUNICATOR
#define ORB_DEFINE(_name, _struct, _size_no_padding, _fields, _orb_id_enum, _queue_size) \ #define ORB_DEFINE(_name, _struct, _size_no_padding, _message_hash, _orb_id_enum, _queue_size) \
const struct orb_metadata __orb_##_name = { \ const struct orb_metadata __orb_##_name = { \
#_name, \ #_name, \
sizeof(_struct), \ sizeof(_struct), \
_size_no_padding, \ _size_no_padding, \
_fields, \ _message_hash, \
_orb_id_enum, \ _orb_id_enum, \
_queue_size \ _queue_size \
}; struct hack }; struct hack
#else #else
#define ORB_DEFINE(_name, _struct, _size_no_padding, _fields, _orb_id_enum, _queue_size) \ #define ORB_DEFINE(_name, _struct, _size_no_padding, _message_hash, _orb_id_enum, _queue_size) \
const struct orb_metadata __orb_##_name = { \ const struct orb_metadata __orb_##_name = { \
#_name, \ #_name, \
sizeof(_struct), \ sizeof(_struct), \