Most enums were replaced with constants, according to MISRA

This commit is contained in:
Pavel Kirienko
2014-04-19 15:16:10 +04:00
parent ace2cf9d0e
commit dfe3b4511e
21 changed files with 95 additions and 55 deletions
+2 -3
View File
@@ -9,14 +9,13 @@
namespace uavcan
{
namespace
{
/**
* Common error codes.
* Functions that return signed integers may also return inverted error codes,
* i.e. returned value should be inverted back to get the actual error code.
*/
namespace
{
const int16_t ErrOk = 0;
const int16_t ErrFailure = 1;
const int16_t ErrInvalidParam = 2;