aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/debug.h
blob: 4a3365a3e6f16fc5fd4cdae741055738f6cc9ae2 (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
34
35
36
37
38
39
40
41
42
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright (c) 2013-2018 Linaro Limited
 */
/**
 * @file
 *
 * ODP debug
 */

#ifndef ODP_API_SPEC_DEBUG_H_
#define ODP_API_SPEC_DEBUG_H_
#include <odp/visibility_begin.h>

#ifdef __cplusplus
extern "C" {
#endif

/** @addtogroup odp_initialization
 *  @{
 */

/**
 * @def ODP_STATIC_ASSERT
 * Compile time assertion macro. Fails compilation and outputs message 'msg'
 * if condition 'cond' is false. Macro definition is empty when the compiler
 * is not supported or the compiler does not support static assertion.
 *
 * @param cond Conditional expression to be evaluated at compile time
 *
 * @param msg  Compile time error message to be displayed if cond is false
 */

/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#include <odp/visibility_end.h>
#endif