macro

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

 



often i see in the linux kernel source, the macro written in following mode:
 
#define macro_name do{
      asm volatile{....}
  while(0);
 
why use do while(0) if the number of loop is one?
 
Thanks
R!SC

[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