blob: 078a0d6698290beae829a562e75439739432d7a9 (
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_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__ */
|