#ifndef EXIT_INL_H_ #error "Direct inclusion of this file is not allowed, include exit.h" // For the sake of sane code completion. #include "exit.h" #endif namespace NYT { //////////////////////////////////////////////////////////////////////////////// template requires std::is_enum_v [[noreturn]] void AbortProcessSilently(E exitCode) { AbortProcessSilently(ToUnderlying(exitCode)); } template requires std::is_enum_v [[noreturn]] void AbortProcessDramatically( E exitCode, TStringBuf message) { AbortProcessDramatically( ToUnderlying(exitCode), TEnumTraits::FindLiteralByValue(exitCode).value_or(""), message); } //////////////////////////////////////////////////////////////////////////////// } // namespace NYT