Artyom Tarasenko wrote:
I agree that the stack should be preserved, but why not just do it literary by throwing away unused arguments? In the current implementation there is no way to pass 0 as the last argument. Do you think it's ok?
Thinking about this more, we actually have a few more tools in our arsenal working at the C level ;)
What do you think of the following patch? It should solve your problem with the last 0 argument, preserves stack content between calls and is probably easier to read too.
ATB,
Mark.