An example under Programming, under Precompiler, (#ifdef,#ifndef,#else,#endif)

Code:
#define LOW_RES
...
#ifndef LOW_RES
  video_mode = 8; // 1024x768
#else
  video_mode = 6; // 640x480
#endif



I partially understand this example. I'm assuming that I may never need to wright code using this? I don't see the advantage since you can use functions for this also. Does this have any advantage over functions if your only programming in lite_C ?

Last edited by kmega00; 10/10/13 20:54.