aboutsummaryrefslogtreecommitdiff
path: root/include/linux/typecheck.h
blob: 694d28565a8df1b4b87442dbdd64c604a5b70ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef TYPECHECK_H_INCLUDED
#define TYPECHECK_H_INCLUDED

#define typecheck(type,x) \
({	type __dummy; \
	typeof(x) __dummy2; \
	(void)(&__dummy == &__dummy2); \
	1; \
})

#define typecheck_fn(type,function) \
({	typeof(type) __tmp = function; \
	(void)__tmp; \
})

#endif