Chromium Code Reviews| Index: runtime/bin/builtin.cc |
| diff --git a/runtime/bin/builtin.cc b/runtime/bin/builtin.cc |
| index 5f8abcf33522625f0d8604fc08e2891978e11ca9..15c201f9770a01c792c4aa6949ea8229cfcc2d06 100644 |
| --- a/runtime/bin/builtin.cc |
| +++ b/runtime/bin/builtin.cc |
| @@ -2,14 +2,18 @@ |
| // 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. |
| +#include "bin/builtin.h" |
|
Ivan Posva
2011/10/19 21:57:11
System includes first, projects includes after.
rchandia
2011/10/21 17:29:41
Done.
|
| + |
| #include <assert.h> |
| #include <stdlib.h> |
| -#include <string.h> |
| #include <stdio.h> |
| +#include <string> |
| + |
| +#include "bin/dartutils.h" |
| + |
| #include "include/dart_api.h" |
| -#include "bin/builtin.h" |
| // Implementation of native functions which are used for some |
| // test/debug functionality in standalone dart mode. |
| @@ -27,3 +31,10 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) { |
| PrintString(stdout, Dart_GetNativeArgument(args, 0)); |
| Dart_ExitScope(); |
| } |
| + |
| +void FUNCTION_NAME(Runtime_Exit)(Dart_NativeArguments args) { |
| + Dart_EnterScope(); |
| + int64_t status = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 0)); |
| + exit(status); |
| + Dart_ExitScope(); |
| +} |