Re: Needed explaination:#define xxx do {} while (0)

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

 



On Tuesday 21 December 2004 07:47, pankaj dekate wrote:
> I couldn't even get the statement
> "it says such macros are used to have a
> block  of statements without errors on subsitution."
> I think Jim must be right.It could just be a hook which could be
> redefined later.Now another guess could be to check out whether
> "do{}while(0)" is another macro defined .....

I don't think this is the case. It makes no sense to define parts of the 
programming language as a macro and I'm not sure if this even is allowed.

Thanks, Tobias

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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