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

Unified Diff: runtime/bin/platform.cc

Issue 17406010: Move getters from Options to Platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed Dart_GetType Created 7 years, 6 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/main.cc ('k') | runtime/bin/platform_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform.cc
diff --git a/runtime/bin/platform.cc b/runtime/bin/platform.cc
index 850be27e2ead3947e36c51e76c77885560d2eadd..495ffe3db941f82234b5455b248e1e448e7c6320 100644
--- a/runtime/bin/platform.cc
+++ b/runtime/bin/platform.cc
@@ -79,5 +79,12 @@ void FUNCTION_NAME(Platform_Environment)(Dart_NativeArguments args) {
Dart_ExitScope();
}
+
+void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) {
+ Dart_EnterScope();
+ Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
+ Dart_ExitScope();
+}
+
} // namespace bin
} // namespace dart
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698