Skip to content

Commit

Permalink
feat: add array size macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 24, 2023
1 parent 9cf5c97 commit c7304e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/zenoh-pico/utils/result.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define ZENOH_PICO_UTILS_RESULT_H

#define _ZP_UNUSED(x) (void)(x)
#define _ZP_ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))

#define _Z_ERR_MESSAGE_MASK 0x88
#define _Z_ERR_ENTITY_MASK 0x90
Expand Down

0 comments on commit c7304e8

Please sign in to comment.