frank1369blogger's blog

By frank1369blogger, history, 6 years ago, In English

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.

| Write comment?
»
6 years ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

Add -DLOCAL to compiler command line