MCPcopy Create free account
hub / github.com/cpputest/cpputest / returnPointerValueOrDefault_c

Function returnPointerValueOrDefault_c

src/CppUTestExt/MockSupport_c.cpp:966–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966void* returnPointerValueOrDefault_c(void * defaultValue)
967{
968 if (!hasReturnValue_c()) {
969 return defaultValue;
970 }
971 return pointerReturnValue_c();
972}
973
974const void* constPointerReturnValue_c()
975{

Callers

nothing calls this directly

Calls 2

hasReturnValue_cFunction · 0.85
pointerReturnValue_cFunction · 0.85

Tested by

no test coverage detected