Page 1 of 1

PostPosted: Fri Jan 26, 2001 6:05 pm
by johndb
Does PocketC have a limit on the number of arguments that can be passed to a function?

If I pass 10 or less arguments it compiles fine but if I pass 11 arguments the compiler returns an error "'subname' parameter 10 differs from declaration".

The declaration does match the header file.

Any insights?
BTW - I do need the number of arguments ;-)

Thanks,

John

PostPosted: Sun Jan 28, 2001 1:37 pm
by Vilmos
10 is the limit, it says so in the new version. If you really need more than that and can't make some global, or factor your functions I would suggest making your arguments into an array and then just pass the pointer to the array.

Vilmos