XenevaOS
Loading...
Searching...
No Matches
Macros
typecheck.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define typecheck(type, x)
 
#define typecheck_fn(type, function)
 
#define typecheck_pointer(x)
 

Macro Definition Documentation

◆ typecheck

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

◆ typecheck_fn

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

◆ typecheck_pointer

#define typecheck_pointer (   x)
Value:
({ typeof(x) __dummy; \
(void)sizeof(*__dummy); \
1; \
})