From 9934754d1f49640b9d370f9086273ada94b022c1 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Tue, 19 Apr 2022 17:31:32 -0400 Subject: [PATCH] Pull in Unity. Update documentation to match latest handling of arrays of length zero. --- docs/CMock_Summary.md | 5 +++-- vendor/unity | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/CMock_Summary.md b/docs/CMock_Summary.md index 485ab51..0660619 100644 --- a/docs/CMock_Summary.md +++ b/docs/CMock_Summary.md @@ -135,8 +135,9 @@ that resembles a pointer or array, it breaks the argument into TWO arguments. The first is the original pointer. The second specify the number of elements it is to verify of that array. If you specify 1, it'll check one object. If 2, it'll assume your pointer is pointing at the first of two elements in an array. -If you specify zero elements, it will check just the pointer if -`:smart` mode is configured or fail if `:compare_data` is set. +If you specify zero elements and `UNITY_COMPARE_PTRS_ON_ZERO_ARRAY` is defined, +then this assertion can also be used to directly compare the pointers to verify +that they are pointing to the same memory address. * `void func(void)` => (nothing. In fact, an additional function is only generated if the params list contains pointers) * `void func(ptr * param, other)` => `void func_ExpectWithArray(ptr* param, int param_depth, other)` diff --git a/vendor/unity b/vendor/unity index 2f74065..4389bab 160000 --- a/vendor/unity +++ b/vendor/unity @@ -1 +1 @@ -Subproject commit 2f7406572e6f11212536c99a839e1bf512fe3fb6 +Subproject commit 4389bab82ee8a4b4631a03be2e07dd5c67dab2d4