blob: 5b196d5893cb6ec4e74758ae0a406a97689d9535 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2015-2018 Linaro Limited
*/
/**
* @file
*
* ODP debug
*/
#ifndef ODP_ABI_DEBUG_H_
#define ODP_ABI_DEBUG_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @internal Compile time assertion macro. Fails compilation and outputs 'msg'
* if condition 'cond' is false. Macro definition is empty when compiler is not
* supported or the compiler does not support static assertion.
*/
#ifndef __cplusplus
#define ODP_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
#else
#define ODP_STATIC_ASSERT(cond, msg) static_assert(cond, msg)
#endif
#ifdef __cplusplus
}
#endif
#endif
|