Added EV_VA_OPT_ELSE to ev_macros

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2022-01-29 20:01:25 +00:00
parent b0be90cbba
commit 3fae966f63

View File

@@ -125,6 +125,7 @@
* ```
*/
#define EV_VA_OPT(...) __EV_MACRO_IF_ELSE(__EV_MACRO_NOT(EV_VA_ARGS_NARG(__VA_ARGS__)))()
#define EV_VA_OPT_ELSE(...) __EV_MACRO_IF_ELSE(__EV_MACRO_BOOL(EV_VA_ARGS_NARG(__VA_ARGS__)))
/*!
* \brief Calls the passed macro for each element.