aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/examples
diff options
context:
space:
mode:
Diffstat (limited to 'libparc/examples')
-rw-r--r--libparc/examples/How To Create A Static PARC Object/parc_MyObject.c4
-rw-r--r--libparc/examples/How To Create an Object Pool/parc_SimpleBufferPool.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libparc/examples/How To Create A Static PARC Object/parc_MyObject.c b/libparc/examples/How To Create A Static PARC Object/parc_MyObject.c
index 9523e494..f3e5b6c4 100644
--- a/libparc/examples/How To Create A Static PARC Object/parc_MyObject.c
+++ b/libparc/examples/How To Create A Static PARC Object/parc_MyObject.c
@@ -37,7 +37,7 @@ struct PARCMyObject {
static bool
_parcMyObject_Destructor(PARCMyObject **instancePtr)
{
- assertNotNull(instancePtr, "Parameter must be a non-null pointer to a PARCMyObject pointer.");
+ parcAssertNotNull(instancePtr, "Parameter must be a non-null pointer to a PARCMyObject pointer.");
/* cleanup the instance fields here */
@@ -62,7 +62,7 @@ parcObject_Override(
void
parcMyObject_AssertValid(const PARCMyObject *instance)
{
- assertTrue(parcMyObject_IsValid(instance),
+ parcAssertTrue(parcMyObject_IsValid(instance),
"PARCMyObject is not valid.");
}
diff --git a/libparc/examples/How To Create an Object Pool/parc_SimpleBufferPool.c b/libparc/examples/How To Create an Object Pool/parc_SimpleBufferPool.c
index fbd71b6e..9aad015b 100644
--- a/libparc/examples/How To Create an Object Pool/parc_SimpleBufferPool.c
+++ b/libparc/examples/How To Create an Object Pool/parc_SimpleBufferPool.c
@@ -33,7 +33,7 @@ struct PARCSimpleBufferPool {
static bool
_parcSimpleBufferPool_Destructor(PARCSimpleBufferPool **instancePtr)
{
- assertNotNull(instancePtr, "Parameter must be a non-null pointer to a PARCSimpleBufferPool pointer.");
+ parcAssertNotNull(instancePtr, "Parameter must be a non-null pointer to a PARCSimpleBufferPool pointer.");
PARCSimpleBufferPool *pool = *instancePtr;