News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out

Started by cuiewk86, January 04, 2013, 08:22:49 PM

Previous topic - Next topic

cuiewk86

Betwen the preprocesor conditionals (# ifdef, #endif) the code is grayed out, even if the
coresponding symbols are defined in a included header



PS. I am using C::B 12.11 rev 8629 on Windows XP

euzkoarima


euzkoarima

I've just read this thread http://forums.next.codeblocks.org/index.php/topic,17393.0.html
Works ok with defines in build options and defines in the same source, but fail with defines in headers !!

cuiewk86

Quote from: euzkoarima on January 18, 2013, 11:05:30 PM
I've just read this thread http://forums.next.codeblocks.org/index.php/topic,17393.0.html
Works ok with defines in build options and defines in the same source, but fail with defines in headers !!

It does not work ok. If the symbol is undefined later in the file, the change is not recognized by the
program

Off the topic: I don't know how to insert an image in my post.  I tried "Insert Image", but cannot paste the
file between the tags.

   

Alpha

See explanations here and here.

For an image, upload it to an image hosting site (for example PasteAll), then put the url in the [img]http://www.pasteall.org/pic/show.php?id=XXXXX[/img] tags.  Or, if it is a small file, you could attach it (under additional options)... but keep in mind that forum space is limited, so it may be deleted.