-
Notifications
You must be signed in to change notification settings - Fork 0
Programming Conventions
Nicholas Baron edited this page Aug 6, 2018
·
5 revisions
For greater compiler compatibility, use #ifndef instead of #pragma
- #include ""
- #include <> //OpenGL above C++
- #define //CODE BLOCKS
- #define //PURE VALUES
- Do not use "using"
- Avoid cluttering the default and std namespaces
- Do not use "typedef"
- Primitives: Always on the stack
- Arrays & Structs: If the elements have a changeable size, the heap.
- Objects: Always on the heap