[go: up one dir, main page]

File: check-compat.h

package info (click to toggle)
lldpd 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,748 kB
  • sloc: ansic: 76,100; sh: 4,851; python: 1,322; makefile: 658; awk: 19
file content (14 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _CHECK_COMPAT_H
#define _CHECK_COMPAT_H

#if (CHECK_MAJOR_VERSION == 0 && (CHECK_MINOR_VERSION < 9 || (CHECK_MINOR_VERSION == 9 && CHECK_MICRO_VERSION < 10)))
# define ck_assert_ptr_eq(X,Y) do {					\
		void* _ck_x = (X);					\
		void* _ck_y = (Y);					\
		ck_assert_msg(_ck_x == _ck_y,				\
			      "Assertion '"#X"=="#Y"' failed: "#X"==%p, "#Y"==%p", \
			      _ck_x, _ck_y);				\
	} while (0)
#endif

#endif