| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 */ | |
| 5 #ifndef LIBRARIES_NACL_IO_ERROR_H_ | 4 #ifndef LIBRARIES_NACL_IO_ERROR_H_ |
| 6 #define LIBRARIES_NACL_IO_ERROR_H_ | 5 #define LIBRARIES_NACL_IO_ERROR_H_ |
| 7 | 6 |
| 8 struct Error { | 7 struct Error { |
| 9 // TODO(binji): Add debugging constructor w/ __FILE__, __LINE__. | 8 // TODO(binji): Add debugging constructor w/ __FILE__, __LINE__. |
| 10 // crbug.com/247816 | 9 // crbug.com/247816 |
| 11 Error(int error) : error(error) {} | 10 Error(int error) : error(error) {} |
| 12 operator int() const { return error; } | 11 operator int() const { return error; } |
| 13 | 12 |
| 14 int error; | 13 int error; |
| 15 }; | 14 }; |
| 16 | 15 |
| 17 #endif // LIBRARIES_NACL_IO_ERROR_H_ | 16 #endif // LIBRARIES_NACL_IO_ERROR_H_ |
| OLD | NEW |