c-multihash/include/mh/assert.h
Jakub Sztandera 171bddef0a change how hashes are defined from enum to define
this way the mapping between hashcodes and hash definitions isn't needed
also it simplfies handling, testing  and allows to return error with
the hash code
2016-07-31 15:43:43 +01:00

6 lines
152 B
C

#ifndef MH_ASSERT
#define MH_ASSERT
#define mh_assert_static(isTrue) void mh_assert_static(char x[1 - (!(isTrue))])
#endif /* end of include guard */