-
Notifications
You must be signed in to change notification settings - Fork 6
Style
zenhack edited this page Dec 19, 2011
·
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:
-
- layer 0 is the ...
-
- 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.