forked from hhoppe/Mesh-processing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpp.hint
76 lines (62 loc) · 3.05 KB
/
cpp.hint
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
// Microsoft Visual Studio "hint file" to help the IDE parse macro identifiers.
// See https://msdn.microsoft.com/en-us/library/dd997977.aspx
// (In addition to: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/vcpackages/cpp.hint )
#define HH_POOL_ALLOCATION(x)
#define HH_INITIALIZE_POOL(x)
#define HH_ALLOCATE_POOL(x)
#define HH_INITIALIZE_POOL_NESTED(x, y)
#define HH_MAKE_SAC(T)
#define HH_MAKE_POOLED_SAC(T)
#define HH_SACABLE(T)
#define HH_SAC_INITIALIZATION(T)
#define HH_SAC_ALLOCATE_CD(sac, type)
#define HH_SAC_ALLOCATE(sac, type)
#define HH_SAC_ALLOCATE_FUNC(sac, type, accessfunc)
#define HH_SAC_ALLOCATE_CD_FUNC(sac, type, accessfunc)
#define HH_TIMER(x)
#define HH_CTIMER(x)
#define HH_DTIMER(x)
#define HH_ATIMER(x)
#define HH_STIMER(x)
#define HH_PTIMER(x)
#define HH_TIMER_END(x)
#define HH_STAT(S) hh::Stat S(#S, true)
#define HH_STATNP(S) hh::Stat S(#S, false)
#define HH_SSTAT(S, v) do { static hh::Stat S(#S, true, true); S.enter(v); } while (false)
#define HH_SSTAT_RMS(S, v) do { static hh::Stat S(#S, true, true); S.set_rms(); S.enter(v); } while (false)
#define HH_RSTAT(S, range) do { HH_STAT(S); for (auto e : range) { S.enter(e); } } while (false)
#define HH_RSTAT_RMS(S, range) do { HH_STAT(S); S.set_rms(); for (auto e : range) { S.enter(e); } } while (false)
#define AS(x) x
#define JPP(arglist) arglist // Image_IO.cpp jpeglib.h
#define E(x) // MathOp.h and others
#define for_T_aux(T, i, start, stop, stop_var) for (T stop_var = stop, i = start; i < stop_var; i++)
#define for_T(T, i, start, stop) for_T_aux(T, i, start, stop, HH_UNIQUE_ID(stop_var))
#define for_int(i, stop) for_T(int, i, 0, stop)
#define for_intL(i, start, stop) for_T(int, i, start, stop)
#define for_size_t(i, stop) for_T(std::size_t, i, 0, stop)
#define omp_parallel_for_T(omp_args, T, i, lb, ub) for_T(T, i, lb, ub)
#define parallel_for_T(T, i, lb, ub) omp_parallel_for_T(, T, i, lb, ub)
#define cond_parallel_for_T(c, T, i, lb, ub) omp_parallel_for_T(if ((c) >= hh::k_omp_thresh), T, i, lb, ub)
#define parallel_for_int(i, ub) parallel_for_T(int, i, 0, ub)
#define parallel_for_intL(i, lb, ub) parallel_for_T(int, i, lb, ub)
#define parallel_for_size_t(i, ub) parallel_for_T(size_t, i, 0, ub)
#define hh_parallel_for(...) HH_PRAGMA_OMP(parallel for) for (__VA_ARGS__)
#define cond_parallel_for_int(c, i, ub) cond_parallel_for_T(c, int, i, 0, ub)
#define cond_parallel_for_size_t(c, i, ub) cond_parallel_for_T(c, size_t, i, 0, ub)
#define ForSCSimplex(K, dim, s)
#define ForSCOrderedSimplex(K, dim, s)
#define ForSCSimplexChildIndex(s, c, i)
#define ForSCSimplexChild(s, c)
#define ForSCSimplexFaces(s, c)
#define ForSCSimplexParent(s, p)
#define ForSCSimplexStar(s, p)
#define ForSCVertexFace(v, f)
#define ForAWVertexFace(mesh, v, f, ff)
#define ForAWVertexVertex(mesh, v, f, vv, ff)
#define HH_NORETURN
#define HH_PRINTF_ATTRIBUTE(x)
#define SHOW(x)
#define SHOWL
#define HH_DECLARE_OSTREAM_EOL(...) \
struct has_ostream_eol_aux<__VA_ARGS__> { static CONSTEXPR bool value() { return true; } }
#define HH_DECLARE_OSTREAM_RANGE(...)