Skip to content

Commit

Permalink
fix: empty struct error
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jun 20, 2024
1 parent 9c97908 commit 0b87c2b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions include/zenoh-pico/api/handlers.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,18 @@
/* elem_copy_f */ _z_##item_name##_rc_copy, \
/* elem_drop_f */ z_##item_name##_drop)

#define _Z_CHANNEL_DEFINE_DUMMY(item_name, kind_name) \
typedef struct { \
} z_owned_##kind_name##_handler_##item_name##_t; \
typedef struct { \
} z_loaned_##kind_name##_handler_##item_name##_t; \
void *z_##kind_name##_handler_##item_name##_loan(); \
void *z_##kind_name##_handler_##item_name##_move(); \
void *z_##kind_name##_handler_##item_name##_drop(); \
void *z_##kind_name##_handler_##item_name##_recv(); \
void *z_##kind_name##_handler_##item_name##_try_recv();
#define _Z_CHANNEL_DEFINE_DUMMY(item_name, kind_name) \
typedef struct { \
uint8_t _foo; \
} z_owned_##kind_name##_handler_##item_name##_t; \
typedef struct { \
uint8_t _foo; \
} z_loaned_##kind_name##_handler_##item_name##_t; \
void *z_##kind_name##_handler_##item_name##_loan(void); \
void *z_##kind_name##_handler_##item_name##_move(void); \
void *z_##kind_name##_handler_##item_name##_drop(void); \
void *z_##kind_name##_handler_##item_name##_recv(void); \
void *z_##kind_name##_handler_##item_name##_try_recv(void);

// This macro defines:
// z_ring_channel_sample_new()
Expand Down

0 comments on commit 0b87c2b

Please sign in to comment.