nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ NRF_RPC_AUTO_ARR_FOR

#define NRF_RPC_AUTO_ARR_FOR ( _it,
_var,
_array_ptr,
_type )

#include <nrf_rpc/include/nrf_rpc_common.h>

Value:
(_var) = (_type *)((const uint8_t *const *)(_array_ptr) + 1); \
(const uint8_t *const)_var < \
*(const uint8_t *const *)(_array_ptr); \
(_var) = (_type *)(_var) + 1, (void)_it

Iterate over array items.

This macro must be placed in for brackets.

Parameters
_itPointer variable of type void * for iterator.
_varPointer variable that holds each item of the array.
_array_ptrPointer to array.
_typeType of items in array.