Author Topic: Syntax Highlight is ignore #undef instruction effect?  (Read 5549 times)

Offline kextvizi

  • Single posting newcomer
  • *
  • Posts: 6
Syntax Highlight is ignore #undef instruction effect?
« on: July 04, 2013, 05:54:25 pm »
///Syntax Highlight is ignore #undef instruction effect?

///Version of Code::Blocks:  Release 12.11 rev 8629

#include <iostream>

#define a
#undef a

#ifdef a
int b=1234;//Not marded as ignore code
#endif

#ifdef b
int c;//this is ok,is marked as ignore code
#endif
int main(void)
{
    std::cout<<b;
    return 0;
}
2013-7-4/23:57:31 add:
other ,why I encounter an error"The upload folder is full. Please try a smaller file and/or contact an administrator. " when I doing upload file?(file size is less than 128kb)
2013-7-5/21:07:22 add:
upload folder at where?
« Last Edit: July 05, 2013, 03:08:46 pm by kextvizi »

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Syntax Highlight is ignore #undef instruction effect?
« Reply #1 on: July 04, 2013, 06:17:36 pm »
#undef is implemented, but the feature had not made it into 12.11; if you would like to use it, try the latest nightly, or download and compile from SVN.

Offline p2rkw

  • Almost regular
  • **
  • Posts: 142
Re: Syntax Highlight is ignore #undef instruction effect?
« Reply #2 on: July 04, 2013, 09:33:00 pm »
Btw. @Alpha: syntax hightlighter completly ignores #defines from other files (included headers), but parser recognize them wery well. If you want to fix it just collect defines in pareser and send them to hightlighter (fourth keywords set as far I remember).

Offline kextvizi

  • Single posting newcomer
  • *
  • Posts: 6
Re: Syntax Highlight is ignore #undef instruction effect?
« Reply #3 on: July 05, 2013, 03:06:08 pm »
Btw. @Alpha: syntax hightlighter completly ignores #defines from other files (included headers), but parser recognize them wery well. If you want to fix it just collect defines in pareser and send them to hightlighter (fourth keywords set as far I remember).

I'm sorry I did not understand,you mean are that bug can fix by set Code::Blocks edit?
but I not find one way for that set.

other ,why I encounter an error"The upload folder is full. Please try a smaller file and/or contact an administrator. " when I doing upload file?(file size is less than 128kb)

Upload folder at where?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Syntax Highlight is ignore #undef instruction effect?
« Reply #4 on: July 05, 2013, 04:46:58 pm »
Upload folder at where?
Use image sharing site - imageshank, photobucket, dropbox, etc... Space here is limited and attachments get deleted randomly, when we ran out of space.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline kextvizi

  • Single posting newcomer
  • *
  • Posts: 6
Re: Syntax Highlight is ignore #undef instruction effect?
« Reply #5 on: July 05, 2013, 07:14:40 pm »
Upload folder at where?
Use image sharing site - imageshank, photobucket, dropbox, etc... Space here is limited and attachments get deleted randomly, when we ran out of space.

you mean are must use other file share site to upload or share file?why previous I not need those file share site?