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
Quote from: oBFusCATed on August 15, 2018, 01:58:50 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.