Hello

I'm using Scintilla as a static library, and I have removed
unnecessary lexer modules from my project to reduce the size of the
executable file.

I need to manually redefine the LINK_LEXER() macro from KeyWords.cxx
each time I'm updating Scintilla, so as not to generate errors for the
missing lexer modules.

I'd consider it very handy if the LINK_LEXER() macro could be set to
something empty for static builds:

#ifdef STATIC_BUILD
#define LINK_LEXER(lexer) void(0);
#else
#define LINK_LEXER(lexer) ... /* original definition */
#endif

If using the STATIC_BUILD flag is problematic in this context,
introducing a NO_LINK_LEXER flag or similar could also be helpful to
be set as a compiler option.

--Florian
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to