2002-11-21 18:11:46 +03:00
|
|
|
#ifdef CHECK_VARIABLE_EXISTS
|
|
|
|
|
|
|
|
extern int CHECK_VARIABLE_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
|
2016-05-16 17:34:04 +03:00
|
|
|
if (ac > 1000) {
|
|
|
|
return *av[0];
|
|
|
|
}
|
2004-04-26 18:19:44 +04:00
|
|
|
return CHECK_VARIABLE_EXISTS;
|
2002-11-21 18:11:46 +03:00
|
|
|
}
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
#else /* CHECK_VARIABLE_EXISTS */
|
2002-11-21 18:11:46 +03:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
#error "CHECK_VARIABLE_EXISTS has to specify the variable"
|
2002-11-21 18:11:46 +03:00
|
|
|
|
|
|
|
#endif /* CHECK_VARIABLE_EXISTS */
|