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
13bool BreakOnDebugBreakorAV();
14void SetBreakOnDebugBreakOrAV(bool value);
15
16void DebugBreakorAV(int val); // Global(ish) error handler
17
18char* GetEnvironmentVariableWithDefaultA(const char* envVarName, const char* defaultValue = nullptr);
19
20WCHAR* GetEnvironmentVariableWithDefaultW(const WCHAR* envVarName, const WCHAR* defaultValue = nullptr);
21
22#ifdef FEATURE_PAL
23LPSTR GetCommandLineA();
24#endif // FEATURE_PAL
25
26bool LoadRealJitLib(HMODULE& realJit, WCHAR* realJitPath);
27
28WCHAR* getResultFileName(const WCHAR* folderPath, WCHAR* executableName, const WCHAR* extension);
29
30#endif // !_SPMIUtil
31