Блог пользователя frank1369blogger

Автор frank1369blogger, история, 6 лет назад, По-английски

Ive seen a lot of people use this structure in their code:

ifdef LOCAL

(Part of code that works locally)

else

(The previous part doesn't work in online mode)

endif

instead of LOCAL some other strings can be written too. What I want to know is how to make this structure work. how to make ifdef LOCAL work?

btw Im using devc++.

thanks in advance for helping.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

Add -DLOCAL to compiler command line