Skip to content

Commit

Permalink
fix: define encoding func as inline
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Sep 19, 2024
1 parent 02d6936 commit 5a46325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.id = _id, \
.schema = {._slice = {.start = NULL, .len = 0, ._delete_context = {.deleter = NULL, .context = NULL}}}, \
}}; \
const z_loaned_encoding_t *z_encoding_##_fname(void) { return &ZP_ENCODING_##_cname._val; }
inline const z_loaned_encoding_t *z_encoding_##_fname(void) { return &ZP_ENCODING_##_cname._val; }

ENCODING_CONSTANT_MACRO(ZENOH_BYTES, zenoh_bytes, 0)
ENCODING_CONSTANT_MACRO(ZENOH_INT8, zenoh_int8, 1)
Expand Down

0 comments on commit 5a46325

Please sign in to comment.