Re: Linux-wireless: why use macro to call functions

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

 



On Tue, 24 Dec 2013 14:48:33 +0100, Adrian Ratnapala said:
> > So the main (or only?) purpose of the macro is to save
> 
> Better to say it saves cutting and pasting, which is  a damn good
> thing -- even if macros are an old fashioned way of doing it.

The biggest benefit of macros isn't saving the typing.

It's so that if a change is required, you just have to make it once,
not 35 times for the 37 times you cut-n-pasted it.

Attachment: pgpnfwpFxNcN2.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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