Skip to content

Coding guidelines

Jeff0S edited this page Jul 9, 2014 · 4 revisions

Please don't commit changes to the vcproj or sln files unless you add new source files.

Major additions should be made in a modular format:

  • Make a new directory for your module (e.g. TrackList)
  • Each module should have its own !ModuleInit() function, called from the plugin entry point.
  • Retain the use of COMMAND_T structures for new actions.
  • Global variables are prefixed with g_
  • Member variables are prefixed with m_

sws_extension.cpp contains the main plugin entry point, and sub-modules are initialized there.

We prefer:

  • Hard tabs, equal to 4 spaces
  • Spaces after commas in parameter lists(like, this);