| 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 |
| 11 namespace dart { | 11 namespace dart { |
| 12 namespace bin { | 12 namespace bin { |
| 13 | 13 |
| 14 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { | 14 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { |
| 15 Dart_ThrowException(DartUtils::NewDartArgumentError( | 15 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 16 "Sockets unsupported on this platform")); | 16 "Sockets unsupported on this platform")); |
| 17 } | 17 } |
| 18 | 18 |
| 19 | 19 |
| 20 void FUNCTION_NAME(NetworkInterface_ListSupported)(Dart_NativeArguments args) { |
| 21 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 22 "Sockets unsupported on this platform")); |
| 23 } |
| 24 |
| 25 |
| 20 void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) { | 26 void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) { |
| 21 Dart_ThrowException(DartUtils::NewDartArgumentError( | 27 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 22 "Sockets unsupported on this platform")); | 28 "Sockets unsupported on this platform")); |
| 23 } | 29 } |
| 24 | 30 |
| 25 | 31 |
| 26 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { | 32 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { |
| 27 Dart_ThrowException(DartUtils::NewDartArgumentError( | 33 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 28 "Sockets unsupported on this platform")); | 34 "Sockets unsupported on this platform")); |
| 29 } | 35 } |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 145 |
| 140 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { | 146 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { |
| 141 Dart_ThrowException(DartUtils::NewDartArgumentError( | 147 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 142 "Sockets unsupported on this platform")); | 148 "Sockets unsupported on this platform")); |
| 143 } | 149 } |
| 144 | 150 |
| 145 } // namespace bin | 151 } // namespace bin |
| 146 } // namespace dart | 152 } // namespace dart |
| 147 | 153 |
| 148 #endif // defined(DART_IO_DISABLED) | 154 #endif // defined(DART_IO_DISABLED) |
| OLD | NEW |