-
Notifications
You must be signed in to change notification settings - Fork 600
/
Copy pathconfig.h.in
51 lines (35 loc) · 1.46 KB
/
config.h.in
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
#pragma once
#ifndef HIKYUU_CONFIG_H_
#define HIKYUU_CONFIG_H_
// clang-format off
// Debug 模式
#define HKU_DEBUG_MODE ${HKU_DEBUG_MODE}
// support serialization
#define HKU_SUPPORT_SERIALIZATION ${SUPPORT_SERIALIZATION}
#if HKU_SUPPORT_SERIALIZATION
#define HKU_SUPPORT_TEXT_ARCHIVE ${SUPPORT_TEXT_ARCHIVE}
#define HKU_SUPPORT_XML_ARCHIVE ${SUPPORT_XML_ARCHIVE} //must 1 for python
#define HKU_SUPPORT_BINARY_ARCHIVE ${SUPPORT_BINARY_ARCHIVE} //must 1 for python
#endif /* HKU_SUPPORT_SERIALIZATION*/
// 检查下标越界
#define CHECK_ACCESS_BOUND ${CHECK_ACCESS_BOUND}
// 启用MSVC内存泄漏检查
#define ENABLE_MSVC_LEAK_DETECT ${ENABLE_MSVC_LEAK_DETECT}
// 启用内存泄漏检测,用于 linux 系统
#define HKU_ENABLE_LEAK_DETECT ${HKU_ENABLE_LEAK_DETECT}
// 启用发送用户使用信息
#define HKU_ENABLE_SEND_FEEDBACK ${HKU_ENABLE_SEND_FEEDBACK}
// 启用 hdf5 K线数据引擎
#define HKU_ENABLE_HDF5_KDATA ${HKU_ENABLE_HDF5_KDATA}
// 启用 MySQL K线数据引擎
#define HKU_ENABLE_MYSQL_KDATA ${HKU_ENABLE_MYSQL_KDATA}
// 启用 SQLite K线数据引擎
#define HKU_ENABLE_SQLITE_KDATA ${HKU_ENABLE_SQLITE_KDATA}
// 启用通达信本地 K线数据引擎
#define HKU_ENABLE_TDX_KDATA ${HKU_ENABLE_TDX_KDATA}
// 使用低精度版本,Indicator 使用 float 类型进行计算
#define HKU_USE_LOW_PRECISION ${HKU_USE_LOW_PRECISION}
// 使用 TA-Lib
#define HKU_ENABLE_TA_LIB ${HKU_ENABLE_TA_LIB}
// clang-format on
#endif /* HIKYUU_CONFIG_H_ */