Added EV_HEAD and EV_TAIL

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-12-30 18:34:28 +02:00
parent d60b2ebdb3
commit f25acf244d

View File

@@ -67,6 +67,16 @@
#define EV_STRINGIZE(...) EV_STRINGIZE_IMPL(__VA_ARGS__)
#define EV_STRINGIZE_IMPL(...) #__VA_ARGS__
/*!
* \brief Returns head of list (a,b,c) -> a
*/
#define EV_HEAD(h,...) h
/*!
* \brief Returns tail of list (a,b,c) -> b,c
*/
#define EV_TAIL(h,...) __VA_ARGS__
// Used for the removal of parenthesis around tokens
#define EV_EXPAND(...) __VA_ARGS__