added static function as alternative to macro
This commit is contained in:
parent
67366c25a0
commit
56455a5fa2
@ -15,6 +15,10 @@ public:
|
||||
//! This will be the all-ones value irrespective of used unsigned datatype.
|
||||
static const ReturnValue_t RETURN_FAILED = -1;
|
||||
virtual ~HasReturnvaluesIF() {}
|
||||
|
||||
static ReturnValue_t makeReturnCode(uint8_t interfaceId, uint8_t number) {
|
||||
return (interfaceId << 8) + number;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* HASRETURNVALUESIF_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user