mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 19:08:48 +08:00
36 lines
964 B
C
36 lines
964 B
C
#pragma once
|
|
#ifndef HIKYUU_CONFIG_H_
|
|
#define HIKYUU_CONFIG_H_
|
|
|
|
// clang-format off
|
|
|
|
// 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}
|
|
|
|
// 默认激活的日志级别
|
|
#define LOG_ACTIVE_LEVEL ${LOG_ACTIVE_LEVEL}
|
|
|
|
// 是否使用 spdlog
|
|
#define USE_SPDLOG_LOGGER ${USE_SPDLOG_LOGGER}
|
|
|
|
// 使用异步 logger
|
|
#define HKU_USE_SPDLOG_ASYNC_LOGGER ${USE_SPDLOG_ASYNC_LOGGER}
|
|
|
|
// spdlog默认日志级别
|
|
#define SPDLOG_ACTIVE_LEVEL ${LOG_ACTIVE_LEVEL}
|
|
|
|
// 关闭 HKU_ASSERT
|
|
#define HKU_DISABLE_ASSERT ${HKU_DISABLE_ASSERT}
|
|
|
|
// clang-format on
|
|
|
|
#endif /* HIKYUU_CONFIG_H_ */ |