mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
27 lines
833 B
C
27 lines
833 B
C
#ifndef HIKYUU_CONFIG_H_
|
|
#define HIKYUU_CONFIG_H_
|
|
|
|
#pragma once
|
|
|
|
#define HKU_VERSION "${VERSION}"
|
|
#define HKU_VERSION_MAJOR ${VERSION_MAJOR}
|
|
#define HKU_VERSION_MINOR ${VERSION_MINOR}
|
|
#define HKU_VERSION_ALTER ${VERSION_ALTER}
|
|
|
|
// 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}
|
|
|
|
// 使用异步 logger
|
|
#define HKU_USE_ASYNC_LOGGER ${USE_ASYNC_LOGGER}
|
|
#define SPDLOG_ACTIVE_LEVEL ${SPDLOG_ACTIVE_LEVEL}
|
|
|
|
#endif /* HIKYUU_CONFIG_H_ */ |