You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
//===-- runtime/stop.h ------------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef FORTRAN_RUNTIME_STOP_H_
|
|
#define FORTRAN_RUNTIME_STOP_H_
|
|
|
|
#include "c-or-cpp.h"
|
|
#include "entry-names.h"
|
|
#include <stdlib.h>
|
|
|
|
FORTRAN_EXTERN_C_BEGIN
|
|
|
|
// Program-initiated image stop
|
|
NORETURN void RTNAME(StopStatement)(int code DEFAULT_VALUE(EXIT_SUCCESS),
|
|
bool isErrorStop DEFAULT_VALUE(false), bool quiet DEFAULT_VALUE(false));
|
|
NORETURN void RTNAME(StopStatementText)(const char *, size_t,
|
|
bool isErrorStop DEFAULT_VALUE(false), bool quiet DEFAULT_VALUE(false));
|
|
void RTNAME(PauseStatement)(NO_ARGUMENTS);
|
|
void RTNAME(PauseStatementInt)(int);
|
|
void RTNAME(PauseStatementText)(const char *, size_t);
|
|
NORETURN void RTNAME(FailImageStatement)(NO_ARGUMENTS);
|
|
NORETURN void RTNAME(ProgramEndStatement)(NO_ARGUMENTS);
|
|
|
|
FORTRAN_EXTERN_C_END
|
|
|
|
#endif // FORTRAN_RUNTIME_STOP_H_
|