Orocos Real-Time Toolkit  2.9.0
Macros
Exceptions.hpp File Reference

When Orocos is compiled without exceptions (define ORO_EMBEDDED), the functions which would throw an exception simply return. More...

#include "../rtt-config.h"

Go to the source code of this file.

Macros

#define ORO_THROW(x)   throw x
 
#define ORO_THROW_OR_RETURN(x, rv)   throw x
 

Detailed Description

When Orocos is compiled without exceptions (define ORO_EMBEDDED), the functions which would throw an exception simply return.

For void functions, use ORO_THROW, for other functions, use ORO_THROW_OR_RETURN.

Definition in file Exceptions.hpp.

Macro Definition Documentation

#define ORO_THROW (   x)    throw x
#define ORO_THROW_OR_RETURN (   x,
  rv 
)    throw x