blob: 659d3c540f41e37cce00dee235f518b311587884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* 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__ */
|