Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: niki on August 15, 2018, 11:00:39 am

Title: #if-#else-#endif
Post by: niki on August 15, 2018, 11:00:39 am
Hello,
How could I fix next: see the attachment
Title: Re: #if-#else-#endif
Post by: oBFusCATed on August 15, 2018, 01:58:50 pm
What is the problem?
Title: Re: #if-#else-#endif
Post by: ollydbg on August 15, 2018, 02:46:52 pm
What is the problem?
The first #if branch should be active, since the macro name is already defined in the header file.

I think CC's symbol tree can supply the macro definition query service, but not sure how to implement it in the Scintilla.
Title: Re: #if-#else-#endif
Post by: niki on August 15, 2018, 05:17:13 pm
Good direction,
I'll check it.
Thanks.