mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-18 06:18:37 +08:00
Changed the compiler switch behaviour for printf (default: disabled).
Macro UNITY_EXCLUDE_PRINT_FORMATTED changed to UNITY_INCLUDE_PRINT_FORMATTED. Enable printf via "-DUNITY_INCLUDE_PRINT_FORMATTED" compiler option.
This commit is contained in:
@@ -141,8 +141,8 @@ void UnityPrint(const char* string)
|
||||
}
|
||||
|
||||
/*-----------------------------------------------*/
|
||||
#ifndef UNITY_EXCLUDE_PRINT_FORMATTED
|
||||
void UnityPrintFormatted(const char* format, ... )
|
||||
#ifdef UNITY_INCLUDE_PRINT_FORMATTED
|
||||
void UnityPrintFormatted(const char* format, ...)
|
||||
{
|
||||
const char* pch = format;
|
||||
va_list va;
|
||||
@@ -251,7 +251,7 @@ void UnityPrintFormatted(const char* format, ... )
|
||||
|
||||
va_end(va);
|
||||
}
|
||||
#endif /* ! UNITY_EXCLUDE_PRINT_FORMATTED */
|
||||
#endif /* ! UNITY_INCLUDE_PRINT_FORMATTED */
|
||||
|
||||
/*-----------------------------------------------*/
|
||||
void UnityPrintLen(const char* string, const UNITY_UINT32 length)
|
||||
|
||||
Reference in New Issue
Block a user