"make astyle" - no functionality changes

pull/102/head
Jesse Vincent 8 years ago
parent 285818c88e
commit f3b786dade

@ -10,18 +10,43 @@ typedef union Key_ {
}; };
uint16_t raw; uint16_t raw;
inline bool operator==(uint16_t rhs) { return this->raw == rhs; }; inline bool operator==(uint16_t rhs) {
inline bool operator==(const Key_ rhs) { return this->raw == rhs.raw; }; return this->raw == rhs;
inline Key_& operator=(uint16_t raw) { this->raw = raw; return *this; }; };
inline bool operator!=(const Key_& rhs) { return !(*this == rhs); }; inline bool operator==(const Key_ rhs) {
inline bool operator>=(uint16_t raw) { return this->raw >= raw; }; return this->raw == rhs.raw;
inline bool operator<=(uint16_t raw) { return this->raw <= raw; }; };
inline bool operator>(uint16_t raw) { return this->raw > raw; }; inline Key_& operator=(uint16_t raw) {
inline bool operator<(uint16_t raw) { return this->raw < raw; }; this->raw = raw;
inline bool operator>=(const Key_& other) { return this->raw >= other.raw; }; return *this;
inline bool operator<=(const Key_& other) { return this->raw <= other.raw; }; };
inline bool operator>(const Key_& other) { return this->raw > other.raw; }; inline bool operator!=(const Key_& rhs) {
inline bool operator<(const Key_& other) { return this->raw < other.raw; }; return !(*this == rhs);
};
inline bool operator>=(uint16_t raw) {
return this->raw >= raw;
};
inline bool operator<=(uint16_t raw) {
return this->raw <= raw;
};
inline bool operator>(uint16_t raw) {
return this->raw > raw;
};
inline bool operator<(uint16_t raw) {
return this->raw < raw;
};
inline bool operator>=(const Key_& other) {
return this->raw >= other.raw;
};
inline bool operator<=(const Key_& other) {
return this->raw <= other.raw;
};
inline bool operator>(const Key_& other) {
return this->raw > other.raw;
};
inline bool operator<(const Key_& other) {
return this->raw < other.raw;
};
} Key; } Key;

Loading…
Cancel
Save