Files
swift-mirror/include/swift/Runtime/AccessibleFunction.h
Pavel Yaskevich d65906b1e8 [Runtime] Expose accessible function lookup as stdlib SPI
`findAccessibleFunction` has to be accessible from Concurrency
and Distributed modules to be able to lookup distributed accessors.
2021-12-17 10:52:56 -08:00

35 lines
1.1 KiB
C++

//===---- AcceesibleFunction.h - Runtime accessible functions ---*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// The runtime interface for functions accessible by name.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_RUNTIME_ACCESSIBLE_FUNCTION_H
#define SWIFT_RUNTIME_ACCESSIBLE_FUNCTION_H
#include "swift/ABI/Metadata.h"
#include <cstdint>
namespace swift {
namespace runtime {
SWIFT_RUNTIME_STDLIB_SPI const AccessibleFunctionRecord *
swift_findAccessibleFunction(const char *targetNameStart,
size_t targetNameLength);
} // end namespace runtime
} // end namespace swift
#endif