cbmimage
Loading...
Searching...
No Matches
testhelper.h
Go to the documentation of this file.
1
12#ifndef CBMIMAGE_TESTHELPER_H
13#define CBMIMAGE_TESTHELPER_H 1
14
15# ifdef CBMIMAGE_TESTLIB
16
30# define TEST_ASSERT(_x) if (_x) {} else TEST_i_ASSERT_FAIL( #_x, __FILE__, __LINE__ )
31
32void TEST_i_ASSERT_FAIL(const char * expression, const char * file, int line);
33
34void dump(const void * buffer, unsigned int size);
35
36# else // #ifdef CBMIMAGE_TESTLIB
37
38# define TEST_ASSERT(_x) ((void)0)
39
40# endif // #ifdef CBMIMAGE_TESTLIB
41
42#endif // #ifndef CBMIMAGE_TESTHELPER_H
void TEST_i_ASSERT_FAIL(const char *expression, const char *file, int line)
Definition testhelper.c:40
void dump(const void *buffer, unsigned int size)
Definition testhelper.c:60