-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwb.h
121 lines (102 loc) · 3.79 KB
/
wb.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#ifndef __WB_H__
#define __WB_H__
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
#include <stdio.h>
#include <stdlib.h>
#ifdef _MSC_VER
#define __func__ __FUNCTION__
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1
#endif /* _CRT_SECURE_NO_WARNINGS */
#define _CRT_SECURE_NO_DEPRECATE 1
#define _CRT_NONSTDC_NO_DEPRECATE 1
#include <windows.h>
#include <direct.h>
#include <io.h>
#endif /* _MSC_VER */
#define wbStmt(stmt) stmt
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
#define wbLine __LINE__
#define wbFile __FILE__
#define wbFunction __func__
#define wbExit() \
wbAssert(0); \
exit(1)
#ifdef WB_USE_COURSERA
#define wbLogger_printOnExit 1
//#define WB_USE_SANDBOX
#else /* WB_USE_COURSERA */
#define wbLogger_printOnLog 1
#endif /* WB_USE_COURSERA */
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
#ifdef __cplusplus
#define EXTERN_C extern "C"
#define START_EXTERN_C EXTERN_C {
#define END_EXTERN_C }
#else
#define EXTERN_C
#define START_EXTERN_C
#define END_EXTERN_C
#endif /* __cplusplus */
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
extern char *solutionJSON;
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
#ifdef WB_USE_OPENCL
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif /* __APPLE__ */
#endif /* WB_USE_OPENCL */
#include <wbTypes.h>
#include <wbAssert.h>
#include <wbMemoryManager.h>
#include <wbMalloc.h>
#include <wbString.h>
#include <wbSandbox.h>
#include <wbTimer.h>
#include <wbLogger.h>
#include <wbComparator.h>
#include <wbFile.h>
#include <wbImport.h>
#include <wbExport.h>
#include <wbCast.h>
#include <wbImage.h>
#include <wbArg.h>
#include <wbSolution.h>
#include <wbExit.h>
#include <wbInit.h>
#include <wbCUDA.h>
#include <wbSparse.h>
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
/***********************************************************/
#endif /* __WB_H__ */