Next: , Previous: , Up: assertions equality   [Contents][Index]


6.3.14 Expecting pointers

Preprocessor Macro: void cctests_assert_equal_pointer (cce_destination_t L, void * expected, void * result)
Preprocessor Macro: void cctests_assert_equal_pointer (cce_destination_t L, void * expected, void * result, char const * message, …)

Assert that expected equals result. If the values are equal: just return. Otherwise raise an exception of type cctests_condition_assertion_expected_pointer_t by performing a non–local exit to L.

When the optional argument message and the following arguments are used: a dynamically allocated string is formatted using message as template and printf() format specifiers; this string is used as description message for the assertion violation.


Next: , Previous: , Up: assertions equality   [Contents][Index]

This document describes version 0.4.1-devel.1 of CCTests.