| 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 17 matching lines...) Expand all Loading... |
| 28 "Sockets unsupported on this platform")); | 28 "Sockets unsupported on this platform")); |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { | 32 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { |
| 33 Dart_ThrowException(DartUtils::NewDartArgumentError( | 33 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 34 "Sockets unsupported on this platform")); | 34 "Sockets unsupported on this platform")); |
| 35 } | 35 } |
| 36 | 36 |
| 37 | 37 |
| 38 void FUNCTION_NAME(Socket_IsBindError)(Dart_NativeArguments args) { |
| 39 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 40 "Sockets unsupported on this platform")); |
| 41 } |
| 42 |
| 43 |
| 38 void FUNCTION_NAME(Socket_CreateBindDatagram)(Dart_NativeArguments args) { | 44 void FUNCTION_NAME(Socket_CreateBindDatagram)(Dart_NativeArguments args) { |
| 39 Dart_ThrowException(DartUtils::NewDartArgumentError( | 45 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 40 "Sockets unsupported on this platform")); | 46 "Sockets unsupported on this platform")); |
| 41 } | 47 } |
| 42 | 48 |
| 43 | 49 |
| 44 void FUNCTION_NAME(Socket_Available)(Dart_NativeArguments args) { | 50 void FUNCTION_NAME(Socket_Available)(Dart_NativeArguments args) { |
| 45 Dart_ThrowException(DartUtils::NewDartArgumentError( | 51 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 46 "Sockets unsupported on this platform")); | 52 "Sockets unsupported on this platform")); |
| 47 } | 53 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 151 |
| 146 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { | 152 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { |
| 147 Dart_ThrowException(DartUtils::NewDartArgumentError( | 153 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 148 "Sockets unsupported on this platform")); | 154 "Sockets unsupported on this platform")); |
| 149 } | 155 } |
| 150 | 156 |
| 151 } // namespace bin | 157 } // namespace bin |
| 152 } // namespace dart | 158 } // namespace dart |
| 153 | 159 |
| 154 #endif // defined(DART_IO_DISABLED) | 160 #endif // defined(DART_IO_DISABLED) |
| OLD | NEW |