??? 07/11/08 20:34 Read: times |
#156628 - Defintions only in source files Responding to: ???'s previous message |
I don't like it personally, as alot of people will preach I keep my definitions in my source files and let my header file be a window into the public areas of the source file. Your header file would be much cleaner if all the #ifdef's and #endif's (except the double inclusion protection at the top) were removed. Why put all the clutter in header file? Only put what you want the outside world to be able to access here and it is much easier to look at.
Also, I'm not crazy about putting all my memory mapped variables in one header file either. Putting all variable definitions/declarations in their respective source/header files makes the code more modular. |
Topic | Author | Date |
Initializing variables in header files... | 01/01/70 00:00 | |
Defintions only in source files | 01/01/70 00:00 | |
Coincidental Cohesion | 01/01/70 00:00 | |
and yet... | 01/01/70 00:00 | |
Quite possibly | 01/01/70 00:00 | |
Memory mapping | 01/01/70 00:00 | |
Now... | 01/01/70 00:00 | |
RE: just saved myself some extra typing | 01/01/70 00:00 | |
Resources | 01/01/70 00:00 | |
Another problem | 01/01/70 00:00 | |
Abort, End, Exit Procudure and Shutdown. | 01/01/70 00:00 | |
I guess I gave it significant consideration | 01/01/70 00:00 | |
RE: verbose, over conditionalized | 01/01/70 00:00 |