Skip to content

Commit

Permalink
OSHMEM/RUNTIME: added do while scoping to NOT_IMPLEMENTED macro
Browse files Browse the repository at this point in the history
  • Loading branch information
roiedanino committed Jul 11, 2024
1 parent 66947e6 commit c4588ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oshmem/runtime/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@ OSHMEM_DECLSPEC int oshmem_shmem_register_params(void);
} while (0)

#define RUNTIME_SHMEM_NOT_IMPLEMENTED_API_ABORT_RET_SIZE_T() \
RUNTIME_SHMEM_NOT_IMPLEMENTED_API_ABORT(); \
return SIZE_MAX
do { \
RUNTIME_SHMEM_NOT_IMPLEMENTED_API_ABORT(); \
return SIZE_MAX; \
} while (0)

END_C_DECLS

Expand Down

0 comments on commit c4588ca

Please sign in to comment.