#endif
/// Use DALI_FALLTHROUGH in switch statements where one case is supposed to fall through into another case
+#define DALI_FALLTHROUGH
+#if __GNUC__
#if __has_cpp_attribute(fallthrough)
+#undef DALI_FALLTHROUGH
#define DALI_FALLTHROUGH [[fallthrough]]
-#else
-#define DALI_FALLTHROUGH
+#endif
#endif
#endif // DALI_COMMON_H
* @param[in] value the value to compare
* @return true if the value is equal to zero
*/
+#if __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
+#endif
inline bool EqualsZero( float value )
{
return value == 0.0f;
}
+#if __GNUC__
#pragma GCC diagnostic pop
+#endif
/**
* @brief Helper function to compare equality of two floating point values.