Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
platform_macos_cocoa.h
Go to the documentation of this file.
1// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_PLATFORM_MACOS_COCOA_H_
6#define RUNTIME_BIN_PLATFORM_MACOS_COCOA_H_
7
8// platform_macos_cocoa[.h,.mm] defines a new compilation unit, written
9// in Objective-C++, that acts as a minimal bridge between platform_macos
10// and the Cocoa (https://en.wikipedia.org/wiki/Cocoa_(API)) API.
11
12#include "platform/globals.h"
13
14#if !defined(DART_HOST_OS_MACOS)
15#error Do not include platform_macos_cocoa.h on non-MacOS platforms.
16#endif
17
18#include <string>
19
20namespace dart {
21namespace bin {
22
23// Return the operating system version string.
24// See https://developer.apple.com/documentation/foundation/nsprocessinfo/1408730-operatingsystemversionstring.
26
27} // namespace bin
28} // namespace dart
29
30#endif // RUNTIME_BIN_PLATFORM_MACOS_COCOA_H_
std::string NSProcessInfoOperatingSystemVersionString()