Variable naming conventions: Difference between revisions
en>Admin (Created page with "==General Variable Naming Conventions== These are the basic naming conventions that are used for the Engine, although not enforced in all cases, should serve as a reference to try and apply when contributing to the source code. # Member variables are named with a '''m_''' prefix # Class names have a name starting with a capital letter '''ClassName''' for instance # Pointers use the '''p''' prefix #Smart Pointers use the '''sp''' prefix") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
# Pointers use the '''p''' prefix | # Pointers use the '''p''' prefix | ||
#Smart Pointers use the '''sp''' prefix | #Smart Pointers use the '''sp''' prefix | ||
[[Category:Technical]] |
Latest revision as of 03:18, 19 August 2022
General Variable Naming Conventions
These are the basic naming conventions that are used for the Engine, although not enforced in all cases, should serve as a reference to try and apply when contributing to the source code.
- Member variables are named with a m_ prefix
- Class names have a name starting with a capital letter ClassName for instance
- Pointers use the p prefix
- Smart Pointers use the sp prefix