From 18568ff0ff3dce89d694b494c5dfc9a32e63c9e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Jun 2015 17:25:10 +0200 Subject: Part two of dependency injection with auto-generation support --- build/target.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build/target.cxx') diff --git a/build/target.cxx b/build/target.cxx index 3b030ee..6cd1fc9 100644 --- a/build/target.cxx +++ b/build/target.cxx @@ -17,6 +17,17 @@ using namespace std; namespace build { + // target_state + // + static const char* target_state_[] = { + "unknown", "postponed", "unchanged", "changed", "failed"}; + + ostream& + operator<< (ostream& os, target_state ts) + { + return os << target_state_[static_cast (ts)]; + } + // recipe // const recipe empty_recipe; -- cgit v1.1