Skip to content

Commit

Permalink
Use weak_alias to define builtin porting functions
Browse files Browse the repository at this point in the history
  • Loading branch information
qgymib committed Apr 30, 2024
1 parent a806b99 commit d68c947
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 53 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## v3.0.4
## v4.0.0

### BREAKING CHANGES
1. The signature of `cutest_porting_abort()` is changed.

### Fixed
1. Fix: default random seed might exceed the limit.
Expand All @@ -11,6 +14,7 @@
2. You can dynamic register test cases by `cutest_register_case()`.
3. Test case can be unregistered by `cutest_unregister_case()`.
4. Test case is able to convert to parameterized by `cutest_case_convert_parameterized()`.
5. Use weak_alias to define builtin porting functions.


## v3.0.3 (2024/04/23)
Expand Down
10 changes: 5 additions & 5 deletions include/cutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ extern "C" {
/**
* @brief Major version.
*/
#define CUTEST_VERSION_MAJOR 3
#define CUTEST_VERSION_MAJOR 4

/**
* @brief Minor version.
Expand All @@ -110,12 +110,12 @@ extern "C" {
/**
* @brief Patch version.
*/
#define CUTEST_VERSION_PATCH 4
#define CUTEST_VERSION_PATCH 0

/**
* @brief Development version.
*/
#define CUTEST_VERSION_PREREL 6
#define CUTEST_VERSION_PREREL 1

/**
* @brief Ensure the api is exposed as C function.
Expand Down Expand Up @@ -1672,9 +1672,9 @@ void cutest_skip_test(void);
* @note It is not recommend to ignore last words because that will missing
* something really important.
* @param[in] fmt Last words.
* @param[in] ... Arguments to last words.
* @param[in] ap Arguments to last words.
*/
void cutest_porting_abort(const char* fmt, ...);
void cutest_porting_abort(const char* fmt, va_list ap);

/**
* END GROUP: TEST_PORTING_SYSTEM_API_ABORT
Expand Down
Loading

0 comments on commit d68c947

Please sign in to comment.