]> git.ozlabs.org Git - ccan/blob - ccan/cppmagic/_info
tal: allow notifiers on NULL.
[ccan] / ccan / cppmagic / _info
1 #include "config.h"
2 #include <stdio.h>
3 #include <string.h>
4
5 /**
6  * cppmagic - Abuse of the C preprocessor
7  *
8  * This contains a bunch of fancy macro techniques such as
9  * preprocessor-time evaluated conditionals and (quasi) recursion and
10  * iteration.
11  *
12  * It's based on these articles:
13  *  - http://jhnet.co.uk/articles/cpp_magic
14  *  - https://github.com/pfultz2/Cloak/wiki/C-Preprocessor-tricks,-tips,-and-idioms
15  * and code from the Boost C++ library.
16  *
17  * License: BSD-MIT
18  */
19 int main(int argc, char *argv[])
20 {
21         /* Expect exactly one argument */
22         if (argc != 2)
23                 return 1;
24
25         if (strcmp(argv[1], "depends") == 0) {
26                 return 0;
27         }
28
29         return 1;
30 }