-
Notifications
You must be signed in to change notification settings - Fork 0
/
BVEC.h
87 lines (70 loc) · 2 KB
/
BVEC.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifdef BVEC_set_BaseLibrary
#error BVEC_set_BaseLibrary is no longer supported.
#endif
#ifndef BVEC_set_prefix
#error ifndef BVEC_set_prefix
#endif
#ifndef BVEC_set_PossibleUpdate
#define BVEC_set_PossibleUpdate
#endif
#ifndef BVEC_set_NodeType
#define BVEC_set_NodeType uint32_t
#endif
#ifndef BVEC_set_NodeSizeType
#define BVEC_set_NodeSizeType uint32_t
#endif
#ifndef BVEC_set_HandleAllocate
#define BVEC_set_HandleAllocate 1
#endif
#ifndef BVEC_set_BufferingFormat
#define BVEC_set_BufferingFormat 1
#endif
#ifndef BVEC_set_alloc_open
#define BVEC_set_alloc_open malloc
#endif
#ifndef BVEC_set_alloc_resize
#define BVEC_set_alloc_resize realloc
#endif
#ifndef BVEC_set_alloc_close
#define BVEC_set_alloc_close free
#endif
#ifndef BVEC_set_alloc_RetryAmount
#define BVEC_set_alloc_RetryAmount 0x10
#endif
#if BVEC_set_BufferingFormat == 0
#ifndef BVEC_set_BufferingFormat0_WantedBufferByteAmount
#define BVEC_set_BufferingFormat0_WantedBufferByteAmount 512
#endif
#define BVEC_BufferDivide (BVEC_set_BufferingFormat0_WantedBufferByteAmount / sizeof(BVEC_set_NodeData))
#define BVEC_BufferAmount (BVEC_BufferDivide == 0 ? 1 : BVEC_BufferDivide)
#endif
#define _BVEC_P(p0) CONCAT3(BVEC_set_prefix, _, p0)
#include "internal/rest.h"
#undef _BVEC_P
#if BVEC_set_BufferingFormat == 0
#undef BVEC_BufferAmount
#undef BVEC_BufferDivide
#undef BVEC_set_BufferingFormat0_WantedBufferByteAmount
#endif
#undef BVEC_set_alloc_RetryAmount
#undef BVEC_set_alloc_close
#undef BVEC_set_alloc_resize
#undef BVEC_set_alloc_open
#undef BVEC_set_BufferingFormat
#undef BVEC_set_HandleAllocate
#ifdef BVEC_set_NodeData
#undef BVEC_set_NodeData
#endif
#undef BVEC_set_NodeSizeType
#undef BVEC_set_NodeType
#ifdef BVEC_set_MultipleType
#ifdef BVEC_set_MultipleType_Sizes
#undef BVEC_set_MultipleType_Sizes
#endif
#ifdef BVEC_set_MultipleType_SizeArray
#undef BVEC_set_MultipleType_SizeArray
#endif
#undef BVEC_set_MultipleType
#endif
#undef BVEC_set_PossibleUpdate
#undef BVEC_set_prefix