??? 06/27/05 14:09 Read: times |
#96020 - Aside - 'C' #define names Responding to: ???'s previous message |
Leo Paul said:
#define Xtal 22.1184 #define tic12 (12/Xtal) #define _10msec (65536 - ((1000 * 10) / tic12)) It is conventional among 'C' programmers to use ALL-UPPERCASE names for preprocessor #defines. Of course, it makes no difference to the actual operation of your code - but it does make it a whole lot easier to share it in public forums like this if you stick to the conventions! Also, the 'C' standard specifically states that names beginning with an underscore are reserved for use by the compiler - you shouldn't use them in your own code. |