FLANG

stop.h
1 //===-- runtime/stop.h ------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #ifndef FORTRAN_RUNTIME_STOP_H_
10 #define FORTRAN_RUNTIME_STOP_H_
11
12 #include "c-or-cpp.h"
13 #include "entry-names.h"
14 #include <stdlib.h>
15
16 FORTRAN_EXTERN_C_BEGIN
17
18 // Program-initiated image stop
19 NORETURN void RTNAME(StopStatement)(int code DEFAULT_VALUE(EXIT_SUCCESS),
20 bool isErrorStop DEFAULT_VALUE(false), bool quiet DEFAULT_VALUE(false));
21 NORETURN void RTNAME(StopStatementText)(const char *,
22 bool isErrorStop DEFAULT_VALUE(false), bool quiet DEFAULT_VALUE(false));
23 void RTNAME(PauseStatement)(NO_ARGUMENTS);
24 NORETURN void RTNAME(FailImageStatement)(NO_ARGUMENTS);
25 NORETURN void RTNAME(ProgramEndStatement)(NO_ARGUMENTS);
26
27 FORTRAN_EXTERN_C_END
28
29 #endif // FORTRAN_RUNTIME_STOP_H_