forked from SESA/EBBlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Style
jmcddn edited this page Apr 2, 2012
·
7 revisions
- most things are EBBs, so lets not bother with "EBB" at the beginning of name
- We will capitalize first letter of a name that is a class
- Material is divided into layers of functionality:
- see the Directory Reference
- we avoid using #define for constants, since they are not visible to the debugger. Instead we use static const. The only place where we use #define is if we need it for assembly, or to declare a global array. In that case we will assign the macro to a static const.
- Put the License at the beginning of every file, after include guard in headers
- Use the stdint.h types, not val/uval etc.
- Use 2 spaces for indentation.