sathyashrayan wrote:
Can any body suggest any link to a tutorial, which can cover
various concepts of using macro in a program? I have seen macros
used to over come the endiness problems, portability issues,
generality etc. But I don't understand how it is been done.
Limit yourself to #define CONST for now. Macros don't really
solve any problems, they just encapsulate them.
Any time you see a complex macro it isn't doing anything you
couldn't do yourself by writing things out in full. If you don't
understand what the code is doing, you can't write a macro to
implement it. There is no magic, just text replacement.
--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!