@@ -132,7 +132,7 @@ int lookupSymbol(const void *address, SymbolInfo *info);
132
132
// / their old value before returning. \a body can also call \c SymSetOptions()
133
133
// / if needed.
134
134
SWIFT_RUNTIME_STDLIB_SPI
135
- void _swift_withWin32DbgHelpLibrary (
135
+ void _swift_win32_withDbgHelpLibrary (
136
136
void (* body)(HANDLE hProcess, void *context), void *context);
137
137
138
138
// / Configure the environment to allow calling into the Debug Help library.
@@ -150,9 +150,9 @@ void _swift_withWin32DbgHelpLibrary(
150
150
// / \c SymSetOptions() before \a body is invoked, and then resets them back to
151
151
// / their old value before returning. \a body can also call \c SymSetOptions()
152
152
// / if needed.
153
- static inline void _swift_withWin32DbgHelpLibrary (
153
+ static inline void _swift_win32_withDbgHelpLibrary (
154
154
const std::function<void (HANDLE /* hProcess*/ )> &body) {
155
- _swift_withWin32DbgHelpLibrary ([](HANDLE hProcess, void *context) {
155
+ _swift_win32_withDbgHelpLibrary ([](HANDLE hProcess, void *context) {
156
156
auto bodyp = reinterpret_cast <std::function<void (bool )> *>(context);
157
157
(* bodyp)(hProcess);
158
158
}, const_cast <void *>(reinterpret_cast <const void *>(&body)));
@@ -180,10 +180,10 @@ template <
180
180
typename R = typename std::result_of_t <F&(HANDLE /* hProcess*/ )>,
181
181
typename = typename std::enable_if_t<!std::is_same<void, R>::value>
182
182
>
183
- static inline R _swift_withWin32DbgHelpLibrary (const F& body) {
183
+ static inline R _swift_win32_withDbgHelpLibrary (const F& body) {
184
184
R result;
185
185
186
- _swift_withWin32DbgHelpLibrary ([&body, &result] (HANDLE hProcess) {
186
+ _swift_win32_withDbgHelpLibrary ([&body, &result] (HANDLE hProcess) {
187
187
result = body (hProcess);
188
188
});
189
189
0 commit comments