RidgeRun Developer Manual - Coding Styles - C++

From RidgeRun Developer Connection
Jump to: navigation, search




Previous: Coding Styles/C Index Next: Coding Styles/Python




Introduction to 'C++' Coding Styles

There are many coding styles as the concept covers a lot of aspects when writing software source code. In general RidgeRun tries to follow the Google C++ Style Guide.

Other good practices

Conditionals

if ( NULL == var ) {
  // ...
}

This is to avoid possible bugs like:

if ( var = NULL ) {
  // ...
}



Previous: Coding Styles/C Index Next: Coding Styles/Python