| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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/error_exit.h" | 5 #include "bin/error_exit.h" |
| 6 | 6 |
| 7 #include "bin/eventhandler.h" |
| 7 #include "bin/log.h" | 8 #include "bin/log.h" |
| 8 #include "bin/platform.h" | 9 #include "bin/platform.h" |
| 9 #include "bin/process.h" | 10 #include "bin/process.h" |
| 10 #include "bin/eventhandler.h" | |
| 11 #include "include/dart_api.h" | 11 #include "include/dart_api.h" |
| 12 #include "platform/assert.h" | 12 #include "platform/assert.h" |
| 13 #include "platform/globals.h" | 13 #include "platform/globals.h" |
| 14 | 14 |
| 15 namespace dart { | 15 namespace dart { |
| 16 namespace bin { | 16 namespace bin { |
| 17 | 17 |
| 18 void ErrorExit(int exit_code, const char* format, ...) { | 18 void ErrorExit(int exit_code, const char* format, ...) { |
| 19 va_list arguments; | 19 va_list arguments; |
| 20 va_start(arguments, format); | 20 va_start(arguments, format); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 free(error); | 33 free(error); |
| 34 } | 34 } |
| 35 | 35 |
| 36 Process::ClearAllSignalHandlers(); | 36 Process::ClearAllSignalHandlers(); |
| 37 EventHandler::Stop(); | 37 EventHandler::Stop(); |
| 38 Platform::Exit(exit_code); | 38 Platform::Exit(exit_code); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace bin | 41 } // namespace bin |
| 42 } // namespace dart | 42 } // namespace dart |
| OLD | NEW |