forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
node_metadata.h
52 lines (41 loc) · 1.66 KB
/
node_metadata.h
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
43
44
45
46
47
48
49
50
51
52
#ifndef SRC_NODE_METADATA_H_
#define SRC_NODE_METADATA_H_
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#include <string>
namespace node {
#define NODE_VERSIONS_KEYS_BASE(V) \
V(node) \
V(v8) \
V(uv) \
V(zlib) \
V(ares) \
V(modules) \
V(nghttp2) \
V(napi) \
V(llhttp) \
V(http_parser) \
#if HAVE_OPENSSL
#define NODE_VERSIONS_KEY_CRYPTO(V) V(openssl)
#else
#define NODE_VERSIONS_KEY_CRYPTO(V)
#endif
#define NODE_VERSIONS_KEYS(V) \
NODE_VERSIONS_KEYS_BASE(V) \
NODE_VERSIONS_KEY_CRYPTO(V)
class Metadata {
public:
struct Versions {
Versions();
#define V(key) std::string key;
NODE_VERSIONS_KEYS(V)
#undef V
};
Versions versions;
};
// Per-process global
namespace per_process {
extern Metadata metadata;
}
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#endif // SRC_NODE_METADATA_H_