Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

what does the macro STANDALONE in parser.cpp used for?

(1/1)

ollydbg:
I have blame the parser.cpp, and find that the macro usage like:


--- Code: ---#ifndef STANDALONE
    #include <configmanager.h>
    #include <logmanager.h>
    #include <editormanager.h>
    #include <manager.h>
    #include <globals.h>
    #include <infowindow.h>
#endif // STANDALONE
--- End code ---

In the parser.cpp is came from the "revision 5" when the parser.cpp was initially added to the trunk.

So, my question is: what does these preprocessor directive used for ?
It seems when we defined this macro, I still can't build a stand alone program. (The same effort is the parserTest project were have created in this ParserTester for codecompletion plugin

In the ParserTester project, we only include the "parserthread" class, so the Parser.cpp is not included.

So, my suggestion is: Can these preprocessor directive removed? I can't find any reason we should keep it there.

Thanks.

Maybe, the boss mandrav can ask this question.  :D Thanks.

MortenMacFly:

--- Quote from: ollydbg on May 12, 2010, 03:01:41 pm ---Maybe, the boss mandrav can ask this question.  :D Thanks.

--- End quote ---
Probably it's better to ask RickG22. IIRC there used to be a stand-alone (UI based) version of the CC "plugin". Not sure where it went to, but it' most likely incomplete / not working now.

mandrav:
At that point, it was possible to compile the CC plugin files (with an additional main.cpp file) as a standalone executable for easier testing of the parser.
I doubt this can be done nowadays so feel free to ignore it or even remove it.

ollydbg:

--- Quote from: mandrav on May 13, 2010, 09:58:28 am ---At that point, it was possible to compile the CC plugin files (with an additional main.cpp file) as a standalone executable for easier testing of the parser.
I doubt this can be done nowadays so feel free to ignore it or even remove it.

--- End quote ---
Thanks for your reply!!!


--- Code: ---I doubt this can be done nowadays
--- End code ---
Ha, the parserTest project can just do this.

Navigation

[0] Message Index

Go to full version