Files
sdk/runtime/bin/error_exit.h
Ryan Macnak cd5b99154f [vm] Fix potential upref of null in GenerateAppAOTAsAssembly.
Fixes GCC TSAN build.

TEST=local build
Change-Id: I8e7829835b412a9f5fdf638c793d6acf4a2dc501
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/472664
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-01-20 09:49:35 -08:00

29 lines
888 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_
#include "platform/globals.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;
DART_NORETURN
void ErrorExit(int exit_code, const char* format, ...);
} // namespace bin
} // namespace dart
#endif // RUNTIME_BIN_ERROR_EXIT_H_