Skip to content

ParticleIntegrator: Code Style

Julian edited this page Aug 7, 2014 · 2 revisions

The application is written in the C90 C programming language standard using some features of C99 that are supported in Visual Studio 12, namely in-code variable declaration and the simplified single-line comment syntax. The Allman indent style is used for all sections written in C.

Whenever possible, definitions and conditions for cross-platform compatibility are not given within the main section of the code, and instead are moved to the top of SourceCode.c. Some features provide additional functionality that is not required by all users - these can be specified using an option in the configuration, especially if they are still experimental. Other features that are likely to be useful to all users can still be disabled during compilation using a CMake option. The default CMake flag should represent the setup that is used on Constellation (at least in master).