summaryrefslogtreecommitdiff
path: root/cesar/lib/preproc.h
diff options
context:
space:
mode:
authorschodet2008-06-16 13:18:18 +0000
committerschodet2008-06-16 13:18:18 +0000
commit57270c606dd8afed4d6adae3dc7630794239b080 (patch)
treeb08082fb25139eb325d7efd14adbd23ed4ff6aa8 /cesar/lib/preproc.h
parenta2219544aebfe7b92d6b15af6935808b736be699 (diff)
* lib:
- added PREPROC_CALL_UNPACK to call a macro and unpack its arguments. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2342 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/lib/preproc.h')
-rw-r--r--cesar/lib/preproc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cesar/lib/preproc.h b/cesar/lib/preproc.h
index 5b6b5df297..10003b9aa2 100644
--- a/cesar/lib/preproc.h
+++ b/cesar/lib/preproc.h
@@ -520,6 +520,10 @@
macro (h), PREPROC_FOR_EACH_COMMA_63 (macro, ## t)
/* }}} */
+/** Call macro with unpacked arguments. */
+#define PREPROC_CALL_UNPACK(macro, args...) \
+ macro args
+
/** Remove parenthesis: (a, b, c) => a, b, c. */
#define PREPROC_UNPACK(args...) \
PREPROC_UNPACK_ args