Skip to content

Commit

Permalink
Fix #781, Terminate UT macro variadic lists
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Feb 9, 2021
1 parent 09a2c5e commit d6707bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ut_assert/inc/utstubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ int32 UT_DefaultStubImpl(const char *FunctionName, UT_EntryKey_t FuncKey, int32
* This version should be used on stubs that take no arguments
* and are expected to return 0 in the nominal case
*/
#define UT_DEFAULT_IMPL(FuncName) UT_DefaultStubImpl(#FuncName, UT_KEY(FuncName), 0)
#define UT_DEFAULT_IMPL(FuncName) UT_DefaultStubImpl(#FuncName, UT_KEY(FuncName), 0, NULL)

/**
* Macro to simplify usage of the UT_DefaultStubImpl() function
Expand All @@ -476,7 +476,7 @@ int32 UT_DefaultStubImpl(const char *FunctionName, UT_EntryKey_t FuncKey, int32
* This version should be used on stubs that take no arguments
* and are expected to return nonzero in the nominal case
*/
#define UT_DEFAULT_IMPL_RC(FuncName, Rc) UT_DefaultStubImpl(#FuncName, UT_KEY(FuncName), Rc)
#define UT_DEFAULT_IMPL_RC(FuncName, Rc) UT_DefaultStubImpl(#FuncName, UT_KEY(FuncName), Rc, NULL)

/**
* Macro to simplify usage of the UT_DefaultStubImpl() function
Expand Down

0 comments on commit d6707bc

Please sign in to comment.