diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-05-16 23:21:53 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-05-16 23:21:53 +0300 |
commit | c5d377cbfebd3c95daa253f32c6457fa4888b8d6 (patch) | |
tree | 9e8107566e8d198ab535e2e3948f93f2833fb346 /src/Native/Runtime/portable.cpp | |
parent | 692e6fef22e9bff0c46ee01c92367e657c404e91 (diff) |
Add support for PInvoke helpers to the IL compiler. (#1274)
Diffstat (limited to 'src/Native/Runtime/portable.cpp')
-rw-r--r-- | src/Native/Runtime/portable.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Native/Runtime/portable.cpp b/src/Native/Runtime/portable.cpp index 077af8423..1b035d7cb 100644 --- a/src/Native/Runtime/portable.cpp +++ b/src/Native/Runtime/portable.cpp @@ -55,9 +55,20 @@ struct alloc_context int alloc_count; }; +#if defined(USE_PORTABLE_HELPERS) || !defined(_WIN32) // // PInvoke // +COOP_PINVOKE_HELPER(void, RhpPInvoke, (void* pFrame)) +{ + // TODO: RhpPInvoke +} + +COOP_PINVOKE_HELPER(void, RhpPInvokeReturn, (void* pFrame)) +{ + // TODO: RhpReversePInvokeReturn +} + COOP_PINVOKE_HELPER(void, RhpReversePInvoke2, (ReversePInvokeFrame* pFrame)) { Thread* pCurThread = ThreadStore::RawGetCurrentThread(); @@ -73,7 +84,6 @@ COOP_PINVOKE_HELPER(void, RhpReversePInvokeReturn, (ReversePInvokeFrame* pFrame) pFrame->m_savedThread->ReversePInvokeReturn(pFrame); } -#if defined(USE_PORTABLE_HELPERS) || !defined(_WIN32) // // Allocations // |