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

Commit 3cea6b7b authored by Chris Manton's avatar Chris Manton
Browse files

Introduce gd/os/log:CASE_RETURN_TEXT

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I2dcb01263ec78c15977b8730aab79560c2be3005
parent d1ef95e9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -118,3 +118,9 @@ static_assert(LOG_TAG != nullptr, "LOG_TAG is null after header inclusion");
      LOG_ALWAYS_FATAL("assertion '" #condition "' failed - " fmt, ##args); \
    }                                                                       \
  } while (false)

#ifndef CASE_RETURN_TEXT
#define CASE_RETURN_TEXT(code) \
  case code:                   \
    return #code
#endif