diff options
Diffstat (limited to 'libs/hwui/utils/Macros.h')
-rw-r--r-- | libs/hwui/utils/Macros.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/libs/hwui/utils/Macros.h b/libs/hwui/utils/Macros.h index 7212897bf5d3..d758f29d6dcb 100644 --- a/libs/hwui/utils/Macros.h +++ b/libs/hwui/utils/Macros.h @@ -19,21 +19,19 @@ #include <type_traits> #define PREVENT_COPY_AND_ASSIGN(Type) \ - private: \ - Type(const Type&) = delete; \ - void operator=(const Type&) = delete +private: \ + Type(const Type&) = delete; \ + void operator=(const Type&) = delete -#define HASHABLE_TYPE(Type) \ - bool operator==(const Type& other) const; \ - hash_t hash() const; \ - bool operator!=(const Type& other) const { return !(*this == other); } \ - friend inline hash_t hash_type(const Type& entry) { return entry.hash(); } +#define HASHABLE_TYPE(Type) \ + bool operator==(const Type& other) const; \ + hash_t hash() const; \ + bool operator!=(const Type& other) const { return !(*this == other); } \ + friend inline hash_t hash_type(const Type& entry) { return entry.hash(); } #define REQUIRE_COMPATIBLE_LAYOUT(Type) \ - static_assert(std::is_standard_layout<Type>::value, \ - #Type " must have standard layout") + static_assert(std::is_standard_layout<Type>::value, #Type " must have standard layout") -#define WARN_UNUSED_RESULT \ - __attribute__((warn_unused_result)) +#define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #endif /* MACROS_H */ |