summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/builtin/assert.h
blob: e5e4a34b21ca30a1a3c0de51ec8cd403ca169ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright 2020 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __CROS_EC_ASSERT_H
#define __CROS_EC_ASSERT_H

#include <zephyr/sys/__assert.h>

#undef ASSERT
#undef assert
#define ASSERT __ASSERT_NO_MSG
#define assert __ASSERT_NO_MSG

/* TODO(b/269175417): This should be handled in Zephyr __assert.h */
#ifndef __ASSERT_UNREACHABLE
#define __ASSERT_UNREACHABLE CODE_UNREACHABLE
#endif

#endif /* __CROS_EC_ASSERT_H */