-
Notifications
You must be signed in to change notification settings - Fork 6
Coding guidelines
Benualdo edited this page Apr 12, 2021
·
2 revisions
- Use .inl files
- Use VG_INLINE instead of the inline keyword
- Use #if VG_ENABLE_INLINE to #include in .h and #if !VG_ENABLE_INLINE in .cpp
Such functions will be inlined in release builds but not in debug builds.
- Use abstract interfaces to communicate between modules
- Do not use abstract interfaces inside modules for internal classes
- Virtual functions begin with capital letter, their non-virtual versions does not.