Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1706)

Unified Diff: runtime/bin/io_service_unsupported.cc

Issue 24612002: Don't compile io_service if io is not supported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/io_service_unsupported.cc
diff --git a/runtime/bin/vmservice.h b/runtime/bin/io_service_unsupported.cc
similarity index 57%
copy from runtime/bin/vmservice.h
copy to runtime/bin/io_service_unsupported.cc
index 4dcf93f704aaf7e82fc4d54ab5dbd81d2c7ee64e..9e51ca19792fc940814207089371f2ae86e26d23 100644
--- a/runtime/bin/vmservice.h
+++ b/runtime/bin/io_service_unsupported.cc
@@ -2,16 +2,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#ifndef BIN_VMSERVICE_H_
-#define BIN_VMSERVICE_H_
+#include "bin/builtin.h"
+#include "bin/dartutils.h"
#include "include/dart_api.h"
+
namespace dart {
namespace bin {
+void FUNCTION_NAME(IOService_NewServicePort)(Dart_NativeArguments args) {
+ Dart_ThrowException(DartUtils::NewDartArgumentError(
+ "IOService is unsupported on this platform"));
+}
} // namespace bin
} // namespace dart
-#endif // BIN_VMSERVICE_H_
« no previous file with comments | « runtime/bin/io_impl_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698