Issues deteced by Static Code Analysis fixed
[platform/core/uifw/eail.git] / eail / eail / eail_utils.h
index 93a5205..2793ab6 100644 (file)
@@ -37,6 +37,9 @@ extern "C" {
 #define EAIL_STR_SCROLL_LEFT "scroll_left" /**< @brief String for 'scroll left'*/
 #define EAIL_STR_SCROLL_RIGHT "scroll_right" /**< @brief String for 'scroll right'*/
 
+#define float_epsilon 0.00001
+#define float_equal(a,b) (fabs((a) - (b)) < float_epsilon)
+
 /**
  * @enum EAIL_SCROLL_TYPE Type of scroll direction
  */