2015-08-17 11:37:30 +02:00
|
|
|
|
2018-04-23 21:13:27 +02:00
|
|
|
// Visual Studio allows only one set of flags for C and C++.
|
|
|
|
// In a target using C++ we pick the C++ flags even for C sources.
|
|
|
|
#ifdef TEST_LANG_DEFINES_FOR_VISUAL_STUDIO_OR_XCODE
|
2018-08-09 18:06:22 +02:00
|
|
|
# ifndef CONSUMER_LANG_CXX
|
|
|
|
# error Expected CONSUMER_LANG_CXX
|
|
|
|
# endif
|
2018-04-23 21:13:27 +02:00
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
# ifdef CONSUMER_LANG_C
|
|
|
|
# error Unexpected CONSUMER_LANG_C
|
|
|
|
# endif
|
2018-04-23 21:13:27 +02:00
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
# if !LANG_IS_CXX
|
|
|
|
# error Expected LANG_IS_CXX
|
|
|
|
# endif
|
2018-04-23 21:13:27 +02:00
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
# if LANG_IS_C
|
|
|
|
# error Unexpected LANG_IS_C
|
|
|
|
# endif
|
2018-04-23 21:13:27 +02:00
|
|
|
#else
|
2018-08-09 18:06:22 +02:00
|
|
|
# ifdef CONSUMER_LANG_CXX
|
|
|
|
# error Unexpected CONSUMER_LANG_CXX
|
|
|
|
# endif
|
2015-08-17 11:37:30 +02:00
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
# ifndef CONSUMER_LANG_C
|
|
|
|
# error Expected CONSUMER_LANG_C
|
|
|
|
# endif
|
2015-08-17 11:37:30 +02:00
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
# if !LANG_IS_C
|
|
|
|
# error Expected LANG_IS_C
|
|
|
|
# endif
|
2015-08-17 11:37:30 +02:00
|
|
|
|
2018-08-09 18:06:22 +02:00
|
|
|
# if LANG_IS_CXX
|
|
|
|
# error Unexpected LANG_IS_CXX
|
|
|
|
# endif
|
2015-08-17 11:37:30 +02:00
|
|
|
#endif
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
#if !LANG_IS_C_OR_CXX
|
|
|
|
# error Expected LANG_IS_C_OR_CXX
|
|
|
|
#endif
|
|
|
|
|
2024-04-14 22:45:38 +02:00
|
|
|
void consumer_c(void)
|
2015-08-17 11:37:30 +02:00
|
|
|
{
|
|
|
|
}
|