Closed THE-FYP closed 5 years ago
All is quite reasonable. Only bothers me that I will never now which happens with all the combinations of compiler and systems (My bet was that this was only affecting to MSVC)
(My bet was that this was only affecting to MSVC)
Nope, Clang too. At least for me on x86/32 windows build.
Thanks
But clang comes in to flavors: msvc and gcc (binaries download are msvc compatible)
This PR changes function generator to wrap non-UDT-1 functions and use them as an original ones. So for example the function
becomes this
and has the original signature.
This solves the following issues introduced in 96925c96f4953590c5434fa7adbcb3e71fe087ea:
use_nonUDT2()
doesn't cover struct nonUDT2-functions, for exampleImFont:CalcTextSizeA
(furthermore it is not that easy to fix it because ffi metatypes are restricted from changing)use_nonUDT2()
makes scripts using LuaJIT-ImGui compiler-depended, which is undesirableAlso since this solves incompatibility between different compilers I guess #5 might be closed.