Provide more information to the user about usage of MonoPInvokeCallback (#82653)
authorJb Evain <jb@evain.net>
Sat, 25 Feb 2023 03:44:25 +0000 (19:44 -0800)
committerGitHub <noreply@github.com>
Sat, 25 Feb 2023 03:44:25 +0000 (21:44 -0600)
commitf2f35f9107bfc1ba8f51d9b493efa0406e05b068
treea445c95e70b4f1a3ec4910b51ebe21c8253c343e
parentaec37df3ee7bd7ead5c2b9751eaa8818c2c054e8
Provide more information to the user about usage of MonoPInvokeCallback (#82653)

Unity's IL2CPP accepts a MonoPInvokeCallback constructor without any argument. When porting interop code from Unity's IL2CPP to Mono AOT this gives a hint to the user about what they need to fix.
src/mono/mono/mini/aot-compiler.c