Hi Eric,
On 2/13/22 17:15, Eric Pouech wrote:
+#define call_func1(func,_this) ((1)?0:(func(_this),0),call_thiscall_func1(func,_this))
I don't really like this solution. I'm not sure if it's needed taking in account the types are already checked in 64-bit case. Also I think that it will be much cleaner to start using thiscall on clang instead. It's not very common configuration but it will allow type checking. Another way of improving type checking is to get rid of casts in callers.
Thanks, Piotr