Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkGetExecutablePath_mac.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2022 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9#include <mach-o/dyld.h>
10
11std::string SkGetExecutablePath() {
12 uint32_t size = 0;
13 _NSGetExecutablePath(nullptr, &size);
14
15 std::string result(size, '\0');
16 if (_NSGetExecutablePath(result.data(), &size) != 0) {
17 result.clear();
18 }
19 return result;
20}
std::string SkGetExecutablePath()
GAsyncResult * result