summaryrefslogtreecommitdiff
path: root/src/vm/mlinfo.h
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>2019-01-11 11:12:01 -0800
committerGitHub <noreply@github.com>2019-01-11 11:12:01 -0800
commit55b0d2790c75efe2b4a29a561127599668658e05 (patch)
treedf27a20d05bfb0429987c7424c2e47531fc78819 /src/vm/mlinfo.h
parentca68a16fcb31162990fa9af9910e852a6cb66782 (diff)
downloadcoreclr-55b0d2790c75efe2b4a29a561127599668658e05.tar.gz
coreclr-55b0d2790c75efe2b4a29a561127599668658e05.tar.bz2
coreclr-55b0d2790c75efe2b4a29a561127599668658e05.zip
Enable returning more complex structures via PInvoke returns. (#21470)
* Add test verifying behavior in dotnet/coreclr#19676. * Clean up test code. * Test what happens if we enable returning structures by value. * Use braced initializer. * Update Decimal tests to expect that returning a decimal by LPStruct or Currency works. * Change handle-in-struct marshalling to expect a NotSupportedException thrown at marshal time instead of expecting a MarshalDirectiveException at signature time. * Update Decimal Reverse-PInvoke tests. * Disable some previously disabled return marshalling types and add a nice comment block explaining why they're disabled. * Enable marshalling DateTime return values and add a test. * Rename IsUnuspportedValueTypeReturn * Add return test for ArrayWithOffset * Remove extraneous P/Invoke. * Fix spelling. * Add test for successfully returning a struct that has one field of a type that is return-type blocked. * Add explicit struct return test. * Clean up tests. * Fix grammer. * Add test for struct whose managed layout doesn't require a stdcall return buffer but whose native layout does. * Add test verifying HandleRef behavior. * Clean up IsUnsupportedTypedefReturn per PR feedback.
Diffstat (limited to 'src/vm/mlinfo.h')
-rw-r--r--src/vm/mlinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/mlinfo.h b/src/vm/mlinfo.h
index 0ac146c3b7..91afec99b0 100644
--- a/src/vm/mlinfo.h
+++ b/src/vm/mlinfo.h
@@ -888,7 +888,7 @@ protected:
VOID ThrowInteropParamException(UINT resID, UINT paramIdx);
VOID CollateParamTokens(IMDInternalImport *pInternalImport, mdMethodDef md, ULONG numargs, mdParamDef *aParams);
-bool IsUnsupportedValueTypeReturn(MetaSig& msig);
+bool IsUnsupportedTypedrefReturn(MetaSig& msig);
void FindCopyCtor(Module *pModule, MethodTable *pMT, MethodDesc **pMDOut);
void FindDtor(Module *pModule, MethodTable *pMT, MethodDesc **pMDOut);