Add some define for debug 02/129602/2
authorHaejeong Kim <backto.kim@samsung.com>
Wed, 17 May 2017 06:50:03 +0000 (15:50 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 17 May 2017 06:50:31 +0000 (06:50 +0000)
Change-Id: I1bf7b5b39b9c4a8869761fc3137b6fe241831bda

src/common/include/media-common-dbg.h

index 443e08e..df965d3 100755 (executable)
                LOGD(FONT_COLOR_YELLOW"<LEAVE>"FONT_COLOR_RESET); \
                } } while (false)
 
+#define MS_DBG_RETV_IF(expr, val) do { \
+                       if (expr) { \
+                               LOGE(FONT_COLOR_RED""FONT_COLOR_RESET);   \
+                               return (val); \
+                       } \
+               } while (0)
+
+#define MS_DBG_RETVM_IF(expr, val, fmt, arg...) do { \
+                       if (expr) { \
+                               LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+                               return (val); \
+                       } \
+               } while (0)
+
 #endif /*_MEDIA_COMMON_DBG_H_*/