|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
13#ifndef ZEPHYR_SUBSYS_TESTSUITE_INCLUDE_ZEPHYR_FFF_EXTENSIONS_H_
14#define ZEPHYR_SUBSYS_TESTSUITE_INCLUDE_ZEPHYR_FFF_EXTENSIONS_H_
79#define RETURN_HANDLED_CONTEXT(FUNCNAME, \
80 CONTEXTTYPE, RESULTFIELD, CONTEXTPTRNAME, HANDLERBODY) \
81 if (FUNCNAME##_fake.return_val_seq_len) { \
82 CONTEXTTYPE * const contexts = \
83 CONTAINER_OF(FUNCNAME##_fake.return_val_seq, \
84 CONTEXTTYPE, RESULTFIELD); \
85 size_t const seq_idx = (FUNCNAME##_fake.return_val_seq_idx < \
86 FUNCNAME##_fake.return_val_seq_len) ? \
87 FUNCNAME##_fake.return_val_seq_idx++ :\
88 FUNCNAME##_fake.return_val_seq_idx - 1;\
89 CONTEXTTYPE * const CONTEXTPTRNAME = &contexts[seq_idx]; \
92 return FUNCNAME##_fake.return_val