dart-sdk/runtime/bin/error_exit.h
Ryan Macnak 3c298dbca5 [vm] Update to constexpr in runtime/bin.
TEST=build
Change-Id: I18fc7cfe725dc978d4b23de6191e455ac7cd75e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293800
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-04-12 20:32:29 +00:00

26 lines
843 B
C++

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// 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.
#ifndef RUNTIME_BIN_ERROR_EXIT_H_
#define RUNTIME_BIN_ERROR_EXIT_H_
namespace dart {
namespace bin {
// Exit code indicating an internal Dart Frontend error.
constexpr int kDartFrontendErrorExitCode = 252;
// Exit code indicating an API error.
constexpr int kApiErrorExitCode = 253;
// Exit code indicating a compilation error.
constexpr int kCompilationErrorExitCode = 254;
// Exit code indicating an unhandled error that is not a compilation error.
constexpr int kErrorExitCode = 255;
void ErrorExit(int exit_code, const char* format, ...);
} // namespace bin
} // namespace dart
#endif // RUNTIME_BIN_ERROR_EXIT_H_