File: _info

package info (click to toggle)
pdbg 3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,212 kB
  • sloc: ansic: 21,934; cpp: 3,363; sh: 3,343; makefile: 314; asm: 11
file content (30 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "config.h"
#include <stdio.h>
#include <string.h>

/**
 * cppmagic - Abuse of the C preprocessor
 *
 * This contains a bunch of fancy macro techniques such as
 * preprocessor-time evaluated conditionals and (quasi) recursion and
 * iteration.
 *
 * It's based on these articles:
 *  - http://jhnet.co.uk/articles/cpp_magic
 *  - https://github.com/pfultz2/Cloak/wiki/C-Preprocessor-tricks,-tips,-and-idioms
 * and code from the Boost C++ library.
 *
 * License: BSD-MIT
 */
int main(int argc, char *argv[])
{
	/* Expect exactly one argument */
	if (argc != 2)
		return 1;

	if (strcmp(argv[1], "depends") == 0) {
		return 0;
	}

	return 1;
}