1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Support option to specify array length of zero to force pointer comparison.

This commit is contained in:
Mark VanderVoord
2022-04-19 17:27:31 -04:00
parent 0df1d442cb
commit 4389bab82e
5 changed files with 68 additions and 1 deletions

View File

@@ -121,6 +121,12 @@ _Example:_
#define UNITY_POINTER_WIDTH 64 // Set UNITY_POINTER_WIDTH to 64-bit
```
#### `UNITY_COMPARE_PTRS_ON_ZERO_ARRAY`
Define this to make all array assertions compare pointers instead of contents when a length of zero is specified. When not enabled,
defining a length of zero will always result in a failure and a message warning the user that they have tried to compare empty
arrays.
#### `UNITY_SUPPORT_64`
Unity will automatically include 64-bit support if it auto-detects it, or if your `int`, `long`, or pointer widths are greater than 32-bits.