Added include of 'stddef.h' to 'unity_internals.h' if 'UNITY_EXCLUDE_STDDEF_H' is not defined. This adds compiler independent support for the 'NULL' macro.

This commit is contained in:
Fabian Zahn
2018-10-14 14:08:09 +02:00
parent 9987824da7
commit e2e549a22f
2 changed files with 16 additions and 0 deletions

View File

@ -215,6 +215,18 @@ Guide.
_Example:_
#define UNITY_FLOAT_PRECISION 0.001f
### Miscellaneous
##### `UNITY_EXCLUDE_STDDEF_H`
Unity uses the `NULL` macro, which defines the value of a null pointer constant,
defined in `stddef.h` by default. If you want to provide
your own macro for this, you should exclude the `stddef.h` header file by adding this
define to your configuration.
_Example:_
#define UNITY_EXCLUDE_STDDEF_H
### Toolset Customization