mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 08:00:18 +01:00
std-aux: add _NM_MACRO_IDENTITY(), _NM_MACRO_CALL2(), _NM_MACRO_SELECT_FIRST()
_NM_MACRO_CALL2() is needed, because we cannot call _NM_MACRO_CALL() inside _NM_MACRO_CALL().
This commit is contained in:
parent
2c3abc7bcb
commit
9823ae75e5
1 changed files with 7 additions and 1 deletions
|
|
@ -475,7 +475,13 @@ nm_streq0(const char *s1, const char *s2)
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define _NM_MACRO_CALL(macro, ...) macro(__VA_ARGS__)
|
||||
#define _NM_MACRO_IDENTITY(...) __VA_ARGS__
|
||||
|
||||
#define _NM_MACRO_SELECT_FIRST(...) _NM_MACRO_SELECT_FIRST_IMPL(__VA_ARGS__, throwaway)
|
||||
#define _NM_MACRO_SELECT_FIRST_IMPL(first, ...) first
|
||||
|
||||
#define _NM_MACRO_CALL(macro, ...) macro(__VA_ARGS__)
|
||||
#define _NM_MACRO_CALL2(macro, ...) macro(__VA_ARGS__)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue