Index: native_client_sdk/src/libraries/nacl_io/error.h |
diff --git a/native_client_sdk/src/libraries/nacl_io/error.h b/native_client_sdk/src/libraries/nacl_io/error.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b6f186f4a9d06bbd87789b9977d014c80d44a5a1 |
--- /dev/null |
+++ b/native_client_sdk/src/libraries/nacl_io/error.h |
@@ -0,0 +1,16 @@ |
+/* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef LIBRARIES_NACL_IO_ERROR_H_ |
+#define LIBRARIES_NACL_IO_ERROR_H_ |
+ |
+// HACK(binji) |
Sam Clegg
2013/05/31 18:40:29
This whole file is a hack? Why?
binji
2013/06/03 17:16:46
Sorry, didn't remove this yet. I was planning on h
|
+struct Error { |
+ Error(int error) : error(error) {} |
noelallen1
2013/06/07 21:48:43
#ifdef DEBUG
Error(int errno, const char *file,
binji
2013/06/07 23:23:11
Added TODO
|
+ operator int() const { return error; } |
+ |
+ int error; |
+}; |
+ |
+#endif // LIBRARIES_NACL_IO_ERROR_H_ |