I simply don't get! #define
#1

This simple code:

Код:
#include <a_samp>

#if defined printf
  #undef printf
#endif

main(){

}
Doesn't compile! Why!?


It seems like this line
Код:
#if defined printf
finds printf to be defined and tries to execute this line
Код:
#undef printf
but compiler emits error on this as it doesn't recognize printf as defined anymore... wtf? Explain me please
Reply


Messages In This Thread
I simply don't get! #define - by Baltazar - 12.04.2015, 21:07
Re: I simply don't get! #define - by Vince - 12.04.2015, 21:25
Re: I simply don't get! #define - by Baltazar - 12.04.2015, 21:52
Re: I simply don't get! #define - by Crayder - 12.04.2015, 21:54
Re: I simply don't get! #define - by Baltazar - 12.04.2015, 21:56
Re: I simply don't get! #define - by Crayder - 12.04.2015, 21:57
Re: I simply don't get! #define - by Baltazar - 12.04.2015, 21:59
Re: I simply don't get! #define - by Threshold - 12.04.2015, 22:00
Re: I simply don't get! #define - by Crayder - 12.04.2015, 22:01
Re: I simply don't get! #define - by Baltazar - 12.04.2015, 22:05

Forum Jump:


Users browsing this thread: 2 Guest(s)