OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "bin/platform.h" | 5 #include "bin/platform.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 | 8 |
9 #include "bin/file.h" | 9 #include "bin/file.h" |
10 #include "bin/utils.h" | 10 #include "bin/utils.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 Platform::FreeEnvironment(env, count); | 72 Platform::FreeEnvironment(env, count); |
73 Dart_PropagateError(error); | 73 Dart_PropagateError(error); |
74 } | 74 } |
75 } | 75 } |
76 Platform::FreeEnvironment(env, count); | 76 Platform::FreeEnvironment(env, count); |
77 Dart_SetReturnValue(args, result); | 77 Dart_SetReturnValue(args, result); |
78 } | 78 } |
79 Dart_ExitScope(); | 79 Dart_ExitScope(); |
80 } | 80 } |
81 | 81 |
| 82 |
| 83 void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) { |
| 84 Dart_EnterScope(); |
| 85 Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString())); |
| 86 Dart_ExitScope(); |
| 87 } |
| 88 |
82 } // namespace bin | 89 } // namespace bin |
83 } // namespace dart | 90 } // namespace dart |
OLD | NEW |