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