@lexikos whats this code for? https://github.com/Lexikos/AutoHotkey_L/blame/093b8084da1f5772e310ca78a6463be1d3c57460/source/script2.cpp#L12717-L12724
it looks like it can never run. on 32bit, for aRet a hardcoded NULL is passed and this function is being called only from this exact one place
unneeded DynaCall code? Topic is solved
Re: unneeded DynaCall code? Topic is solved
I assume it is part of the original DynaCall or whatever code DynaCall was based on, by the author indicated in the comments (Ton Plooy). It would probably be used for struct return values.
According to my brief check, the compiler already omits that code. Function inlining would allow the optimizer to see that one (or all) of the conditions are always false.
According to my brief check, the compiler already omits that code. Function inlining would allow the optimizer to see that one (or all) of the conditions are always false.