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

Update change log and known issues.

Fix bug with infinity and NaN handling.
This commit is contained in:
Mark VanderVoord
2023-11-13 17:03:07 -05:00
parent 3f7564ea3b
commit a1b1600e43
6 changed files with 154 additions and 24 deletions

View File

@@ -222,6 +222,17 @@ _Example:_
#define UNITY_FLOAT_PRECISION 0.001f
```
#### `UNITY_IS_NAN` and `UNITY_IS_INF`
If your toolchain defines `isnan` and `isinf` in `math.h` as macros, nothing needs to be done. If your toolchain doesn't define these, Unity
will create these macros itself. You may override either or both of these defines to specify how you want to evaluate if a number is NaN or Infinity.
_Example:_
```C
#define UNITY_IS_NAN(n) ((n != n) ? 1 : 0)
```
### Miscellaneous
#### `UNITY_EXCLUDE_STDDEF_H`