mirror of
https://github.com/ennorehling/cutest.git
synced 2024-12-22 07:52:21 +00:00
CuAssertPtrEquals now takes const pointers
This commit is contained in:
parent
6e268687db
commit
b920423768
2
CuTest.c
2
CuTest.c
@ -222,7 +222,7 @@ void CuAssertDblEquals_LineMsg(CuTest* tc, const char* file, int line, const cha
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CuAssertPtrEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message,
|
void CuAssertPtrEquals_LineMsg(CuTest* tc, const char* file, int line, const char* message,
|
||||||
void* expected, void* actual)
|
const void* expected, const void* actual)
|
||||||
{
|
{
|
||||||
char buf[STRING_MAX];
|
char buf[STRING_MAX];
|
||||||
if (expected == actual) return;
|
if (expected == actual) return;
|
||||||
|
2
CuTest.h
2
CuTest.h
@ -69,7 +69,7 @@ void CuAssertDblEquals_LineMsg(CuTest* tc,
|
|||||||
double expected, double actual, double delta);
|
double expected, double actual, double delta);
|
||||||
void CuAssertPtrEquals_LineMsg(CuTest* tc,
|
void CuAssertPtrEquals_LineMsg(CuTest* tc,
|
||||||
const char* file, int line, const char* message,
|
const char* file, int line, const char* message,
|
||||||
void* expected, void* actual);
|
const void* expected, const void* actual);
|
||||||
|
|
||||||
/* public assert functions */
|
/* public assert functions */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user