1 | // |
---|---|
2 | // Copyright (c) Microsoft. All rights reserved. |
3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
4 | // |
5 | //---------------------------------------------------------- |
6 | // SPMIUtil.h - General utility functions |
7 | //---------------------------------------------------------- |
8 | #ifndef _SPMIUtil |
9 | #define _SPMIUtil |
10 | |
11 | #include "methodcontext.h" |
12 | |
13 | bool BreakOnDebugBreakorAV(); |
14 | void SetBreakOnDebugBreakOrAV(bool value); |
15 | |
16 | void DebugBreakorAV(int val); // Global(ish) error handler |
17 | |
18 | char* GetEnvironmentVariableWithDefaultA(const char* envVarName, const char* defaultValue = nullptr); |
19 | |
20 | WCHAR* GetEnvironmentVariableWithDefaultW(const WCHAR* envVarName, const WCHAR* defaultValue = nullptr); |
21 | |
22 | #ifdef FEATURE_PAL |
23 | LPSTR GetCommandLineA(); |
24 | #endif // FEATURE_PAL |
25 | |
26 | bool LoadRealJitLib(HMODULE& realJit, WCHAR* realJitPath); |
27 | |
28 | WCHAR* getResultFileName(const WCHAR* folderPath, WCHAR* executableName, const WCHAR* extension); |
29 | |
30 | #endif // !_SPMIUtil |
31 |