12#ifndef FORTRAN_RUNTIME_TEMPORARY_STACK_H_
13#define FORTRAN_RUNTIME_TEMPORARY_STACK_H_
15#include "flang/Runtime/entry-names.h"
18namespace Fortran::runtime {
32[[nodiscard]]
void *RTDECL(CreateValueStack)(
33 const char *sourceFile =
nullptr,
int line = 0);
34void RTDECL(PushValue)(
void *opaquePtr,
const Descriptor &value);
37void RTDECL(PopValue)(
void *opaquePtr, Descriptor &retValue);
41void RTDECL(ValueAt)(
void *opaquePtr, uint64_t i, Descriptor &retValue);
42void RTDECL(DestroyValueStack)(
void *opaquePtr);
52[[nodiscard]]
void *RTDECL(CreateDescriptorStack)(
53 const char *sourceFile =
nullptr,
int line = 0);
54void RTDECL(PushDescriptor)(
void *opaquePtr,
const Descriptor &value);
57void RTDECL(PopDescriptor)(
void *opaquePtr, Descriptor &retValue);
61void RTDECL(DescriptorAt)(
void *opaquePtr, uint64_t i, Descriptor &retValue);
62void RTDECL(DestroyDescriptorStack)(
void *opaquePtr);