OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #if defined(DART_IO_DISABLED) | 5 #if defined(DART_IO_DISABLED) |
6 | 6 |
7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 34 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 void FUNCTION_NAME(Stdin_SetLineMode)(Dart_NativeArguments args) { | 38 void FUNCTION_NAME(Stdin_SetLineMode)(Dart_NativeArguments args) { |
39 Dart_ThrowException( | 39 Dart_ThrowException( |
40 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); | 40 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
41 } | 41 } |
42 | 42 |
43 | 43 |
| 44 void FUNCTION_NAME(Stdin_AnsiSupported)(Dart_NativeArguments args) { |
| 45 Dart_ThrowException( |
| 46 DartUtils::NewDartArgumentError("Stdin unsupported on this platform")); |
| 47 } |
| 48 |
| 49 |
44 void FUNCTION_NAME(Stdout_GetTerminalSize)(Dart_NativeArguments args) { | 50 void FUNCTION_NAME(Stdout_GetTerminalSize)(Dart_NativeArguments args) { |
45 Dart_ThrowException( | 51 Dart_ThrowException( |
46 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); | 52 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); |
47 } | 53 } |
48 | 54 |
| 55 |
| 56 void FUNCTION_NAME(Stdout_AnsiSupported)(Dart_NativeArguments args) { |
| 57 Dart_ThrowException( |
| 58 DartUtils::NewDartArgumentError("Stdout unsupported on this platform")); |
| 59 } |
| 60 |
49 } // namespace bin | 61 } // namespace bin |
50 } // namespace dart | 62 } // namespace dart |
51 | 63 |
52 #endif // defined(DART_IO_DISABLED) | 64 #endif // defined(DART_IO_DISABLED) |
OLD | NEW |