CHECK() print log showing filename,function and line number in the dlogutil.
Change-Id: If90fcf2be144fa68eaa7302c3457ae9d61a8d55b
Signed-off-by: Sumant Chaudhary <sumant.c@samsung.com>
#error "Debug builds are not expected to be optimized as official builds."
#endif // defined(OFFICIAL_BUILD) && !defined(NDEBUG)
-#if defined(OFFICIAL_BUILD) && !DCHECK_IS_ON()
+#if BUILDFLAG(IS_TIZEN)
+#define ENABLE_CHECK_LOGGING
+#endif
+
+#if defined(OFFICIAL_BUILD) && !DCHECK_IS_ON() && !defined(ENABLE_CHECK_LOGGING)
// Note that this uses IMMEDIATE_CRASH_ALWAYS_INLINE to force-inline in debug
// mode as well. See LoggingTest.CheckCausesDistinctBreakpoints.
[[noreturn]] NOMERGE IMMEDIATE_CRASH_ALWAYS_INLINE void CheckFailure() {
else \
check_failure_function(message_on_fail __VA_OPT__(, ) __VA_ARGS__)
-#if !CHECK_WILL_STREAM()
+#if !CHECK_WILL_STREAM() || defined(ENABLE_CHECK_LOGGING)
// Discard log strings to reduce code bloat.
#define CHECK_OP(name, op, val1, val2, ...) \