2013-12-26 18:59:55 +04:00
|
|
|
|
|
|
|
#ifdef Type_Is_
|
2016-05-16 17:34:04 +03:00
|
|
|
#if !Result
|
|
|
|
#error Result should be 1 in WARN mode
|
|
|
|
#endif
|
2013-12-26 18:59:55 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Type_Is_NEW
|
2016-05-16 17:34:04 +03:00
|
|
|
#if Result
|
|
|
|
#error Result should be 0 in NEW mode
|
|
|
|
#endif
|
2013-12-26 18:59:55 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef Type_Is_OLD
|
2016-05-16 17:34:04 +03:00
|
|
|
#if !Result
|
|
|
|
#error Result should be 1 in OLD mode
|
|
|
|
#endif
|
2013-12-26 18:59:55 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(Type_Is_) && !defined(Type_Is_OLD) && !defined(Type_Is_NEW)
|
|
|
|
#error No expected definition present
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void foo(void)
|
|
|
|
{
|
|
|
|
}
|