Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ff81f64 authored by Henri Chataing's avatar Henri Chataing
Browse files

system/gd/os: Deprecate ASSERT

Test: m com.android.btservices
Bug: 305066880
Flag: EXEMPT, mechanical refactor
Change-Id: Ifc131690f6717d0da828d4af965ac85c161b4347
parent 44b64827
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -138,10 +138,3 @@ static_assert(LOG_TAG != nullptr, "LOG_TAG should never be NULL");
#define LOG_ALWAYS_FATAL(fmt, args...)                                        \
  LOG_ALWAYS_FATAL_INT(_PREPEND_SRC_LOC_IN_LOG(fmt, ##args))
#endif

#define ASSERT(condition)                                    \
  do {                                                       \
    if (!(condition)) {                                      \
      LOG_ALWAYS_FATAL("assertion '" #condition "' failed"); \
    }                                                        \
  } while (false)