Commit 357c4669 authored by Lucas Russo's avatar Lucas Russo

include/sm_io_mod_dispatch.h: add array smio_mod_dispatch iterator macro

This way avoids users needing to know how this
is implemented internally and, obviously, decreases
the chances of error.
parent 5ab81c09
......@@ -41,6 +41,8 @@ extern const smio_mod_dispatch_t _esmio_mod_dispatch;
.bootstrap_ops = &mod_bootstrap_ops \
};
#define for_each_smio(s) for ((s) = &_smio_mod_dispatch; (s) < &_esmio_mod_dispatch; (s)++)
#ifdef __cplusplus
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment