From 0ba7e6a892877a2ac0015a4dfe9249fa2e255f31 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sat, 4 May 2024 14:54:06 -0400 Subject: [PATCH] feat(C): add preprocessor define for C API version (#3737) It will be helpful for the downstream program to require a minimal version of the C API. ## Summary by CodeRabbit - **Documentation** - Updated the C API version to 22 in the documentation. Signed-off-by: Jinzhe Zeng --- source/api_c/include/c_api.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/api_c/include/c_api.h b/source/api_c/include/c_api.h index 3ba5b5e107..2f88f25e43 100644 --- a/source/api_c/include/c_api.h +++ b/source/api_c/include/c_api.h @@ -7,6 +7,13 @@ extern "C" { #include #endif +/** @file */ + +/** C API version. Bumped whenever the API is changed. + * @since API version 22 + */ +#define DP_C_API_VERSION 22 + /** * @brief Neighbor list. */