aboutsummaryrefslogtreecommitdiff
path: root/build/operation.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-10 15:42:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-10 15:42:04 +0200
commit5925c11a1fe8b2e02b790dd40b031ae005d5b68f (patch)
tree14455da2f4b58d49542023ef0b415414b926d56f /build/operation.cxx
parent5807ff000225acf47064eb7f0be965bf1598faaa (diff)
Further operation implementation
Diffstat (limited to 'build/operation.cxx')
-rw-r--r--build/operation.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/build/operation.cxx b/build/operation.cxx
new file mode 100644
index 0000000..0d90c95
--- /dev/null
+++ b/build/operation.cxx
@@ -0,0 +1,24 @@
+// file : build/operation.cxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#include <build/operation>
+
+#include <ostream>
+
+using namespace std;
+
+namespace build
+{
+ ostream&
+ operator<< (ostream& os, action a)
+ {
+ return os << '('
+ << static_cast<uint16_t> (a.meta_operation ()) << ','
+ << static_cast<uint16_t> (a.operation ())
+ << ')';
+ }
+
+ meta_operation_table meta_operations;
+ operation_table operations;
+}