2002-09-20 21:16:50 +04:00
|
|
|
#ifdef CHECK_FUNCTION_EXISTS
|
|
|
|
|
2015-09-22 07:11:50 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
#endif
|
2016-05-16 17:34:04 +03:00
|
|
|
char
|
|
|
|
CHECK_FUNCTION_EXISTS();
|
2004-04-15 16:22:19 +04:00
|
|
|
#ifdef __CLASSIC_C__
|
2016-05-16 17:34:04 +03:00
|
|
|
int main()
|
|
|
|
{
|
2004-04-15 16:22:19 +04:00
|
|
|
int ac;
|
2016-05-16 17:34:04 +03:00
|
|
|
char* av[];
|
2004-04-15 16:22:19 +04:00
|
|
|
#else
|
2016-05-16 17:34:04 +03:00
|
|
|
int main(int ac, char* av[])
|
|
|
|
{
|
2004-04-15 16:22:19 +04:00
|
|
|
#endif
|
2002-09-20 21:16:50 +04:00
|
|
|
CHECK_FUNCTION_EXISTS();
|
2016-05-16 17:34:04 +03:00
|
|
|
if (ac > 1000) {
|
2004-04-15 16:22:19 +04:00
|
|
|
return *av[0];
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2004-04-15 16:22:19 +04:00
|
|
|
return 0;
|
2002-09-20 21:16:50 +04:00
|
|
|
}
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
#else /* CHECK_FUNCTION_EXISTS */
|
2002-09-20 21:16:50 +04:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
#error "CHECK_FUNCTION_EXISTS has to specify the function"
|
2002-09-20 21:16:50 +04:00
|
|
|
|
|
|
|
#endif /* CHECK_FUNCTION_EXISTS */
|