1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

check_mem: Fix Check 0.11

This commit is contained in:
Saleem Rashid 2017-06-03 14:08:04 +01:00 committed by Pavol Rusnak
parent af01ef71fc
commit f029bd876e

View File

@ -1,6 +1,8 @@
#ifndef CHECK_MEM_H
#define CHECK_MEM_H
#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION < 11
#define _ck_assert_mem(X, Y, L, OP) do { \
const char* _ck_x = (const char*)(void*)(X); \
const char* _ck_y = (const char*)(void*)(Y); \
@ -24,3 +26,5 @@
#define ck_assert_mem_ne(X, Y, L) _ck_assert_mem(X, Y, L, !=)
#endif
#endif