- extern typeof(func) THISCALL(func); \
__ASM_GLOBAL_FUNC(__thiscall_ ## func, \
"popl %eax\n\t" \
"pushl %ecx\n\t" \
"pushl %eax\n\t" \
"jmp " __ASM_NAME(#func) )
I would comment on the use of typeof, being a GCC extension, it should be avoided. I don't know why it's in the source already; unless we are allowing them now maybe it just slipped by.
I guess the function prototype could be taken out of the #define and each function given its own definition. I'm not sure if this is a good idea. Such is the evil of the conversion to thiscall.
OK. I put in all the individual prototypes for the thiscall functions. Revised patches attached.