View Single Post
Join Date: Sep 2008
Posts: 90
Reputation: unbeatable0 is an unknown quantity at this point 
Solved Threads: 12
unbeatable0 unbeatable0 is offline Offline
Junior Poster in Training

Re: Preprocessor #warning Command Question

 
0
  #5
Oct 8th, 2008
Any help on this? If it helps, I want the macro to be a function. For example:

  1. #ifndef _WINDOWS_H
  2. #define test(); #warning <windows.h> needs to be included for this function!
  3. #endif
  4. int main(void)
  5. {
  6. test();
  7. return 0;
  8. }

If it's not possible to do this way, is there another way to do it, which will give a warning instead of the function, in case the function cannot be used?
Last edited by unbeatable0; Oct 8th, 2008 at 4:46 am.
Reply With Quote