pputl  0.2.1
pputl Preprocessor Utilities
Macros
first.h File Reference

PPUTL_FIRST - return the first passed argument More...

#include "pputl/cat.h"

Go to the source code of this file.

Macros

#define PPUTL_FIRST(...)   PPUTL_DETAIL_FIRST_X(__VA_ARGS__)
 
#define PPUTL_DETAIL_FIRST_X(...)   PPUTL_DETAIL_FIRST_CHOOSER(__VA_OPT__(, ) SIZEY, EMPTY)(__VA_ARGS__)
 
#define PPUTL_DETAIL_FIRST_CHOOSER(_, choice, ...)   PPUTL_CAT(PPUTL_DETAIL_FIRST_, choice)
 
#define PPUTL_DETAIL_FIRST_EMPTY()
 
#define PPUTL_DETAIL_FIRST_SIZEY(_1, ...)   _1
 

Detailed Description

PPUTL_FIRST - return the first passed argument