mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Remove unused SAPI_INTERNAL_UNREACHABLE
PiperOrigin-RevId: 483393540 Change-Id: I315da44529fb2c0d8b6b6347275fdf66c5aa4712
This commit is contained in:
parent
4c87556901
commit
3b95bec700
|
@ -30,17 +30,6 @@
|
|||
#include "absl/strings/str_format.h"
|
||||
#include "sandboxed_api/util/strerror.h"
|
||||
|
||||
// `SAPI_INTERNAL_UNREACHABLE` is an unreachable statement. A program which
|
||||
// reaches one has undefined behavior, and the compiler may optimize
|
||||
// accordingly.
|
||||
#if defined(__GNUC__) || ABSL_HAVE_BUILTIN(__builtin_unreachable)
|
||||
#define SAPI_INTERNAL_UNREACHABLE __builtin_unreachable()
|
||||
#elif defined(_MSC_VER)
|
||||
#define SAPI_INTERNAL_UNREACHABLE __assume(0)
|
||||
#else
|
||||
#define SAPI_INTERNAL_UNREACHABLE
|
||||
#endif
|
||||
|
||||
// Exclude ABSL_RAW_LOG when running on Android because it will not be visible
|
||||
// in logcat since Android sends anything written to stdout and stderr to
|
||||
// /dev/null.
|
||||
|
|
Loading…
Reference in New Issue
Block a user