summaryrefslogtreecommitdiffstats
path: root/ccan/cppmagic/cppmagic.h
Commit message (Collapse)AuthorAgeFilesLines
* ccan/cppmaigc: Add CPPMAGIC_MAP_CNT(...) macroAlistair Popple2018-06-251-0/+19
| | | | | | | It can be useful to have a count to keep track of which argument number in the list is being expanded. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* ccan/cppmagic: Add CPPMAGIC_INC(x) macroAlistair Popple2018-06-251-0/+41
| | | | | | | The original ccan module does not include a macro to increment numbers. Add one which will increment upto 32 which is enough for our usage. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* ccan/cppmagic: Fix NONEMPTY macroAlistair Popple2018-06-251-2/+8
| | | | | | | | The original implementation of non-empty will fail to compile if passed an argument of the form 'CPPMAGIC_NONEMPTY((...))'. Add a check for parentheses and return true if passed. Signed-off-by: Alistair Popple <alistair@popple.id.au>
* ccan: Add cppmagicAlistair Popple2018-06-251-0/+191
A couple of arguably useful C preprocessor abuses. License is BSD-MIT. Signed-off-by: Alistair Popple <alistair@popple.id.au>
OpenPOWER on IntegriCloud