aboutsummaryrefslogtreecommitdiff
path: root/build/token
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-30 14:16:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-30 14:16:54 +0200
commitb1715878d50aa8a3c3e2404f3ded120329994aba (patch)
tree85c9feb4556f7555f0acc0e2d012ee52b73c1b34 /build/token
parent70256514a09e4692c6839f5c2b21b7ec9c1055bd (diff)
Initial support for command line variables
Diffstat (limited to 'build/token')
-rw-r--r--build/token6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/token b/build/token
index f7e45dc..7b0223b 100644
--- a/build/token
+++ b/build/token
@@ -6,6 +6,7 @@
#define BUILD_TOKEN
#include <string>
+#include <iosfwd>
#include <cstddef> // size_t
#include <cstdint> // uint64_t
#include <cassert>
@@ -61,6 +62,11 @@ namespace build
std::uint64_t l_;
std::uint64_t c_;
};
+
+ // Output the token value in a format suitable for diagnostics.
+ //
+ std::ostream&
+ operator<< (std::ostream&, const token&);
}
#endif // BUILD_TOKEN