Path: blob/main/system/lib/llvm-libc/src/stdlib/exit.cpp
6175 views
//===-- Implementation of exit --------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "src/stdlib/exit.h"9#include "src/__support/OSUtil/exit.h"10#include "src/__support/common.h"11#include "src/__support/macros/config.h"1213namespace LIBC_NAMESPACE_DECL {1415extern "C" void __cxa_finalize(void *);1617[[noreturn]] LLVM_LIBC_FUNCTION(void, exit, (int status)) {18__cxa_finalize(nullptr);19internal::exit(status);20}2122} // namespace LIBC_NAMESPACE_DECL232425