Re: how does 0x##p##q work
From: Randy Dunlap
Date: Fri Jul 24 2015 - 12:58:24 EST
On 07/24/15 09:02, Ahmed Soliman wrote:
> I was working on cleaning up some files in the crypto dirctory using
> checkpatch.pl
> and I found this strange define in crypto/gf128mul.c
> #define xx(p, q) 0x##p##q
> It just seems really weird macro and I cant figure out what is it
> supposed to do!!
## is defined in any complete C language spec (it's a preprocessor directive).
It is used for string concatenation, aka pasting or gluing strings together.
google can find lots of references for it if you need more info.
--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/