Skip to content

Coding guidelines

Benualdo edited this page Apr 12, 2021 · 2 revisions

Inlining

  • 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.

Virtual

  • 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.
Clone this wiki locally