bindings/capi: Fix incompatible parameter

C API doesn't support default parameter, removed it.

Issue: #2228
This commit is contained in:
Jinny You 2024-04-30 18:45:35 +09:00 committed by Hermet Park
parent 7a9ba52d0c
commit 55c4d6fe28
2 changed files with 2 additions and 2 deletions

View file

@ -2361,7 +2361,7 @@ TVG_API Tvg_Result tvg_animation_set_segment(Tvg_Animation* animation, float beg
* \retval TVG_RESULT_INSUFFICIENT_CONDITION In case the animation is not loaded. * \retval TVG_RESULT_INSUFFICIENT_CONDITION In case the animation is not loaded.
* \retval TVG_RESULT_INVALID_ARGUMENT When the given parameters are @c nullptr. * \retval TVG_RESULT_INVALID_ARGUMENT When the given parameters are @c nullptr.
*/ */
TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* begin, float* end = nullptr); TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* begin, float* end);
/*! /*!

View file

@ -128,7 +128,7 @@ TEST_CASE("Animation Segment", "[capiAnimation]")
REQUIRE(end == 1.0f); REQUIRE(end == 1.0f);
//Get only segment begin //Get only segment begin
REQUIRE(tvg_animation_get_segment(animation, &begin) == TVG_RESULT_SUCCESS); REQUIRE(tvg_animation_get_segment(animation, &begin, nullptr) == TVG_RESULT_SUCCESS);
REQUIRE(begin == 0.0f); REQUIRE(begin == 0.0f);
//Get only segment end //Get only segment end