Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #110248

Token concatenation

From Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups comp.lang.c
Subject Token concatenation
Date 2017-05-18 03:25 +0200
Message-ID <eo4bg1Flha4U1@mid.individual.net> (permalink)

Show all headers | View raw


In the Windows headers (driverspecs.h) I found a strange use of the ## 
operator, like this pattern:
   #define foo(x) bar(##baz(x))

A (baz concatenation is invalid, does not result in a valid preprocessor 
token.

Can somebody explain the intended evaluation?

DoDi

Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Token concatenation Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2017-05-18 03:25 +0200
  Re: Token concatenation Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-05-18 11:17 +0100

csiph-web