SLMotion logo

Programming Style Guide

This document describes some rules concerning the style of the code used when writing code for SLMotion. Unless specified otherwise, the rules apply for both C++ and Python code.

C preprocessor macros

Header files

Source files

Including headers

Namespaces

Constants

Pointers and arrays

Functions

Variables

Classes

Templates

Indentation and line length

Comments

Assertions and exceptions

Miscellaneous