Put DiagnosticStream and clr exports in libspirv namespace
Each exported functions either has an "spv" prefix, or is inthe libspirv
namespace.
Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/18
diff --git a/source/binary.cpp b/source/binary.cpp
index 3ce9ee0..1af785e 100755
--- a/source/binary.cpp
+++ b/source/binary.cpp
@@ -163,12 +163,12 @@
// the input stream, and for the given error code. Any data written to the
// returned object will be propagated to the current parse's diagnostic
// object.
- DiagnosticStream diagnostic(spv_result_t error) {
- return DiagnosticStream({0, 0, _.word_index}, _.diagnostic, error);
+ libspirv::DiagnosticStream diagnostic(spv_result_t error) {
+ return libspirv::DiagnosticStream({0, 0, _.word_index}, _.diagnostic, error);
}
// Returns a diagnostic stream object with the default parse error code.
- DiagnosticStream diagnostic() {
+ libspirv::DiagnosticStream diagnostic() {
// The default failure for parsing is invalid binary.
return diagnostic(SPV_ERROR_INVALID_BINARY);
}