Re: Meaning of ## x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 25 Sep 2006, Shakthi Kannan wrote:

I would like to know the meaning of "S3C2410_UDC_INDEX_ ## x" in the following:

#define S3C2410_UDC_SETIX(x)        \
   __raw_writel(S3C2410_UDC_INDEX_ ## x, S3C2410_UDC_INDEX_REG);

The ## operator is the preprocessor token pasting operator. It is basically a string concatenation operator.

So, if you say S3C2410_UDC_SETIX(5), then the first argument to __raw_writel will be S3C2410_UDC_INDEX_5 .

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux