News:

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

Main Menu

#if-#else-#endif

Started by niki, August 15, 2018, 11:00:39 AM

Previous topic - Next topic

niki

Hello,
How could I fix next: see the attachment

oBFusCATed

(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!]

ollydbg

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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

niki

Good direction,
I'll check it.
Thanks.