csnip  0.1
preproc.h
Go to the documentation of this file.
1 #ifndef CSNIP_PREPROC_H
2 #define CSNIP_PREPROC_H
3 
14 #define csnip_pp_prepend_args(...) __VA_ARGS__,
15 
17 #define csnip_pp_append_args(...) ,__VA_ARGS__
18 
20 #define csnip_pp_list_args(...) __VA_ARGS__
21 
23 #define csnip_pp_prepend_noargs()
24 
26 #define csnip_pp_append_noargs()
27 
29 #define csnip_pp_list_noargs() void
30 
36 #define csnip_pp_cat(a, b) csnip_pp__cat(a, b)
38 #define csnip_pp__cat(a, b) a ## b
42 #endif /* CSNIP_PREPROC_H */
43 
44 #if defined(CSNIP_SHORT_NAMES) && !defined(CSNIP_PREPROC_HAVE_SHORT_NAMES)
45 #define pp_prepend_args csnip_pp_prepend_args
46 #define pp_append_args csnip_pp_append_args
47 #define pp_list_args csnip_pp_list_args
48 #define pp_prepend_noargs csnip_pp_prepend_noargs
49 #define pp_append_noargs csnip_pp_append_noargs
50 #define pp_list_noargs csnip_pp_list_noargs
51 #define pp_cat csnip_pp_cat
52 #define CSNIP_PREPROC_HAVE_SHORT_NAMES
53 #endif