2019-08-03 21:53:24 +08:00
|
|
|
#pragma once
|
2019-06-16 20:49:20 +08:00
|
|
|
#ifndef HIKYUU_CONFIG_H_
|
|
|
|
#define HIKYUU_CONFIG_H_
|
|
|
|
|
2020-04-10 01:54:49 +08:00
|
|
|
// clang-format off
|
|
|
|
|
2019-06-16 20:49:20 +08:00
|
|
|
// 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}
|
|
|
|
|
2020-04-10 01:54:49 +08:00
|
|
|
// 默认激活的日志级别
|
|
|
|
#define LOG_ACTIVE_LEVEL ${LOG_ACTIVE_LEVEL}
|
|
|
|
|
|
|
|
// 是否使用 spdlog
|
|
|
|
#define USE_SPDLOG_LOGGER ${USE_SPDLOG_LOGGER}
|
|
|
|
|
2019-06-16 20:49:20 +08:00
|
|
|
// 使用异步 logger
|
2020-04-10 01:54:49 +08:00
|
|
|
#define HKU_USE_SPDLOG_ASYNC_LOGGER ${USE_SPDLOG_ASYNC_LOGGER}
|
|
|
|
|
|
|
|
// spdlog默认日志级别
|
|
|
|
#define SPDLOG_ACTIVE_LEVEL ${LOG_ACTIVE_LEVEL}
|
2019-06-16 20:49:20 +08:00
|
|
|
|
2019-12-15 01:25:00 +08:00
|
|
|
// 关闭 HKU_ASSERT
|
|
|
|
#define HKU_DISABLE_ASSERT ${HKU_DISABLE_ASSERT}
|
|
|
|
|
2023-09-23 18:30:04 +08:00
|
|
|
// 启用MSVC内存泄漏检查
|
2023-10-01 22:32:29 +08:00
|
|
|
#define ENABLE_MSVC_LEAK_DETECT ${ENABLE_MSVC_LEAK_DETECT}
|
2023-09-23 18:30:04 +08:00
|
|
|
|
2023-10-03 01:34:03 +08:00
|
|
|
// 启用发送用户使用信息
|
|
|
|
#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}
|
|
|
|
|
2020-04-10 01:54:49 +08:00
|
|
|
// clang-format on
|
|
|
|
|
2019-06-16 20:49:20 +08:00
|
|
|
#endif /* HIKYUU_CONFIG_H_ */
|