File: cppmagic.h

package info (click to toggle)
wireshark 1.8.2-5wheezy18
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 196,124 kB
  • sloc: ansic: 2,186,574; xml: 55,064; python: 30,233; perl: 22,353; sh: 13,118; pascal: 5,964; lex: 4,963; cpp: 3,604; makefile: 3,471; yacc: 266; asm: 156; tcl: 35
file content (14 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* $Id: cppmagic.h 11400 2004-07-18 00:24:25Z guy $ */

/**************************************** CPP definitions ***************/

/* CPP magic: Concatenate two strings or macros that resolve to strings.
 * Use CONCAT(), not _CONCAT() */
#define _CONCAT(a,b)		a ## b
#define CONCAT(a,b)		_CONCAT(a,b)

/* CPP magic: Surround a string or a macro that resolves to a string with
 * double quotes. */
#define _STRINGIFY(a)		# a
#define STRINGIFY(a)		_STRINGIFY(a)