Flutter Engine
The Flutter Engine
error_exit.h
Go to the documentation of this 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
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_ERROR_EXIT_H_
6#define RUNTIME_BIN_ERROR_EXIT_H_
7
8namespace dart {
9namespace bin {
10
11// Exit code indicating an internal Dart Frontend error.
12constexpr int kDartFrontendErrorExitCode = 252;
13// Exit code indicating an API error.
14constexpr int kApiErrorExitCode = 253;
15// Exit code indicating a compilation error.
16constexpr int kCompilationErrorExitCode = 254;
17// Exit code indicating an unhandled error that is not a compilation error.
18constexpr int kErrorExitCode = 255;
19
20void ErrorExit(int exit_code, const char* format, ...);
21
22} // namespace bin
23} // namespace dart
24
25#endif // RUNTIME_BIN_ERROR_EXIT_H_
uint32_t uint32_t * format
constexpr int kCompilationErrorExitCode
Definition: error_exit.h:16
constexpr int kErrorExitCode
Definition: error_exit.h:18
constexpr int kDartFrontendErrorExitCode
Definition: error_exit.h:12
constexpr int kApiErrorExitCode
Definition: error_exit.h:14
void ErrorExit(int exit_code, const char *format,...)
Definition: error_exit.cc:18
Definition: dart_vm.cc:33