71124dba05f122fb763676b565d6e93c2bbc6f29
[va-opt-c.git] / README.md
1 _Almost_ fully C99 compatible `##__VA_ARGS__` and `__VA_OPT__()` alternative.
2 The compiler needs to support empty `__VA_ARGS__` (not to C99 spec) for this to work, though
3 all compilers tested had no issue with that (even those with partial C99 support, like lacc)
4
5 ### Usage
6
7 Replace `__VA_ARGS__` with `VA_OPT_C(__VA_ARGS__)`:
8
9 ```
10 #define prlog(f, ...) fprintf(stderr, f, VA_OPT_C(__VA_ARGS__))
11 ```