opentracing-c
OpenTracing C API
opentracing-c
config.h
Go to the documentation of this file.
1
#ifndef OPENTRACINGC_CONFIG_H
2
#define OPENTRACINGC_CONFIG_H
3
4
#include <opentracing-c/visibility.h>
5
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
/* __cplusplus */
11
12
#define OPENTRACINGC_MAJOR_VERSION 0
13
#define OPENTRACINGC_MINOR_VERSION 0
14
#define OPENTRACINGC_PATCH_VERSION 1
15
#define OPENTRACINGC_VERSION_STRING "0.0.1"
16
17
#define HAVE_SYS_TIME_H
18
/* #undef OPENTRACINGC_USE_TIMESPEC */
19
20
#define OPENTRACINGC_HAVE_WEAK_SYMBOLS
21
#define OPENTRACINGC_HAVE_NONNULL_ATTRIBUTE
22
#define OPENTRACINGC_HAVE_USED_ATTRIBUTE
23
24
#ifdef OPENTRACINGC_HAVE_WEAK_SYMBOLS
25
#define OPENTRACINGC_WEAK __attribute__((weak))
26
#endif
/* OPENTRACINGC_HAVE_WEAK_SYMBOLS */
27
28
/* Ignoring warnings because nonnull is just to help us maintain quality code.
29
*/
30
#pragma GCC diagnostic push
31
#pragma GCC diagnostic ignored "-Wvariadic-macros"
32
33
#ifdef OPENTRACINGC_HAVE_NONNULL_ATTRIBUTE
34
35
#define OPENTRACINGC_NONNULL(...) \
36
__attribute__((nonnull(__VA_ARGS__)))
37
38
#define OPENTRACINGC_NONNULL_ALL __attribute__((nonnull))
39
40
#else
41
42
#define OPENTRACINGC_NONNULL(...)
43
#define OPENTRACINGC_NONNULL_ALL
44
45
#endif
/* OPENTRACINGC_HAVE_NONNULL_ATTRIBUTE */
46
47
#pragma GCC diagnostic pop
48
49
#ifdef OPENTRACINGC_HAVE_USED_ATTRIBUTE
50
51
#define OPENTRACINGC_USED \
52
__attribute__((used))
53
54
#else
55
56
#define OPENTRACINGC_USED
57
58
#endif
/* OPENTRACINGC_USED */
59
60
#ifdef __cplusplus
61
}
62
#endif
/* __cplusplus */
63
64
#endif
/* OPENTRACINGC_CONFIG_H */
Generated by
1.8.14