aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/debug.h
blob: b3b170f3e3866bd4835effee9e52cfb8d665c13a (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
/* Copyright (c) 2013, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */
/**
 * @file
 *
 * ODP debug
 */

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

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @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