ravynsoft / ravynos

A BSD-based OS project that aims to provide source and binary compatibility with macOS® and a similar user experience.
https://www.ravynos.com
Other
5.68k stars 192 forks source link

No struct return for NSInvocation #321

Open mszoek opened 2 years ago

mszoek commented 2 years ago

I have been playing a bit with NSInvocation and the objc_msgSend functions and this came to light.

#ifdef __clang__
// see http://llvm.org/bugs/show_bug.cgi?id=9254
                    @throw @"NSInvocation: current implementation of struct returning invocation is not supported by Clang.";

Variable length struct returns won't be supported by clang, ever. We have to find another way to handle stret. I don't see this error being thrown so maybe it is not a big deal - but should get fixed at some point.