Linux-wireless: why use macro to call functions

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Dec 24 11:47:25 EST 2013


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131224/98fa3a01/attachment.bin 


More information about the Kernelnewbies mailing list