Skip to content

Commit

Permalink
feat(C): add preprocessor define for C API version (deepmodeling#3737)
Browse files Browse the repository at this point in the history
It will be helpful for the downstream program to require a minimal
version of the C API.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
	- Updated the C API version to 22 in the documentation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored and Mathieu Taillefumier committed Sep 18, 2024
1 parent 4506fd7 commit 8b9a0f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/api_c/include/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ extern "C" {
#include <stdbool.h>
#endif

/** @file */

/** C API version. Bumped whenever the API is changed.
* @since API version 22
*/
#define DP_C_API_VERSION 22

/**
* @brief Neighbor list.
*/
Expand Down

0 comments on commit 8b9a0f1

Please sign in to comment.