Friday, March 7, 2008

Standard predefined macros


Came across this by accident today -- I guess I would've known about this stuff and saved a whole lot of trouble in the past year if I took a proper course in C programming. Oh well.

These are really useful macros for debugging and other purposes in writing C programs, for example the __FILE__ and __LINE__ macros will provide the location of a statement, and it is done completely automatically by the preprocessor, which saves a WHOLE lot of work for debugging -- exactly what SPARX needs.

Once again, RTFM...

No comments: