blob: af18b2a05967cd2db811c9d4efcc41cf5b96fc6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* 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_STDNORETURN_H__
#define __CROS_EC_STDNORETURN_H__
/*
* Only defined for C: https://en.cppreference.com/w/c/language/_Noreturn
*
* C++ uses [[noreturn]]: https://en.cppreference.com/w/cpp/language/attributes/noreturn
*/
#ifndef __cplusplus
#ifndef noreturn
#define noreturn _Noreturn
#endif
#endif
#endif /* __CROS_EC_STDNORETURN_H__ */
|