Files
swift-mirror/include/swift-c/DependencyScan/DependencyScanMacros.h
Artem Chikin 75a8cfa048 [Dependency Scanning] Add a C API layer for dependency scanning tool, scanning actions, and scan results.
Adds a C API layer consisting of:
- Data structures used to represent in-memory result of dependency scanning
- Opaque dependency scanner tool (C wrapper for `DependencyScanningTool`)

Refactors `ScanDependencies.cpp` to produce dependency scanning result in the form of the above binary format.
2021-01-07 09:08:20 -08:00

32 lines
915 B
C

//===-- DependencyScanMacros.h - Swift Dependency Scanning Macros -*- C -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 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
//
//===----------------------------------------------------------------------===//
#ifdef __cplusplus
# define DEPSCAN_BEGIN_DECLS extern "C" {
# define DEPSCAN_END_DECLS }
#else
# define DEPSCAN_BEGIN_DECLS
# define DEPSCAN_END_DECLS
#endif
#ifndef DEPSCAN_PUBLIC
# ifdef _WIN32
# ifdef libSwiftScan_EXPORTS
# define DEPSCAN_PUBLIC __declspec(dllexport)
# else
# define DEPSCAN_PUBLIC __declspec(dllimport)
# endif
# else
# define DEPSCAN_PUBLIC
# endif
#endif