diff options
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/runtimedetails.h')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/runtimedetails.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/runtimedetails.h b/src/ToolBox/superpmi/superpmi-shared/runtimedetails.h new file mode 100644 index 0000000000..4677299e3a --- /dev/null +++ b/src/ToolBox/superpmi/superpmi-shared/runtimedetails.h @@ -0,0 +1,43 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +//---------------------------------------------------------- +// RuntimeDetails.h - the collection of runtime includes that we need to access. +//---------------------------------------------------------- +#ifndef _RuntimeDetails +#define _RuntimeDetails + +//Our little collection of enough of the CLR data to get the JIT up and working... +#define FEATURE_CLRSQM + +#if !defined(_TARGET_AMD64_) && !defined(_TARGET_X86_) && !defined(_TARGET_ARM64_) && !defined(_TARGET_ARM_) +#if defined(_M_X64) +#define _TARGET_AMD64_ 1 +#elif defined(_M_IX86) +#define _TARGET_X86_ 1 +#endif +#endif // _TARGET_* not previously defined + +#define __EXCEPTION_RECORD_CLR //trick out clrntexception.h to not include another exception record.... + +#include <mscoree.h> +#include <corjit.h> +#include <utilcode.h> + +///Turn back on direct access to a few OS level things... +#undef HeapCreate +#undef HeapAlloc +#undef HeapFree +#undef HeapDestroy +#undef TlsAlloc +#undef TlsGetValue +#undef TlsSetValue + +//Jit Exports +typedef ICorJitCompiler* (__stdcall *PgetJit)(); +typedef void (__stdcall *PjitStartup)(ICorJitHost* host); +typedef void (__stdcall *PsxsJitStartup)(CoreClrCallbacks const & cccallbacks); + +#endif |