??? 02/26/11 11:09 Read: times |
#181324 - Coding Standard Rules - Netrino Responding to: ???'s previous message |
As per the coding standards specified by Netrino http://www.netrino.com/Embedded-Systems/How-To/Bug-Killing-Standards-for-Embedded-C rule #2 - As a strongly typed alternative to numerical constants, we had substituted #define with 'const unsigned char code' in our project code.
Is there any issue with #define usage? Why Netrino chose Rule #2 Please suggest |
Topic | Author | Date |
Multiple public definitions in code banking | 01/01/70 00:00 | |
single const byte in code | 01/01/70 00:00 | |
The meaning of 'const' in ANSI 'C' | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
Keil C51 isn't a C++ compiler | 01/01/70 00:00 | |
Coding Standard Rules - Netrino | 01/01/70 00:00 | |
Rule #2 is a bit broken or at least incompletely formulated | 01/01/70 00:00 | |
issue with #define usage | 01/01/70 00:00 | |
extern const code declaration | 01/01/70 00:00 | |
Insufficient detail | 01/01/70 00:00 | |
Conceptually wrong | 01/01/70 00:00 | |
Thanks, it's working ! | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
correction | 01/01/70 00:00 | |
Fundamental 'C' programming error! | 01/01/70 00:00 |