Internals

- Modified color processing so that it can be disabled completely at
  compile time.  This is to assist the Windows port.
This commit is contained in:
Paul Beckingham 2012-03-03 09:08:46 -05:00
parent d230ea4001
commit d4f85484df
4 changed files with 43 additions and 0 deletions

View file

@ -389,6 +389,7 @@ int Context::dispatch (std::string &out)
////////////////////////////////////////////////////////////////////////////////
bool Context::color ()
{
#ifdef FEATURE_COLOR
if (determine_color_use)
{
// What the config says.
@ -420,6 +421,9 @@ bool Context::color ()
// Cached result.
return use_color;
#else
return false;
#endif
}
////////////////////////////////////////////////////////////////////////////////