Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
tools
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
8
#include "
tools/SkGetExecutablePath.h
"
9
#include <mach-o/dyld.h>
10
11
std::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
}
SkGetExecutablePath.h
SkGetExecutablePath
std::string SkGetExecutablePath()
Definition
SkGetExecutablePath_mac.cpp:11
result
GAsyncResult * result
Definition
fl_text_input_plugin.cc:106
Generated on Fri Apr 26 2024 06:18:12 for Flutter Engine by
1.9.8