21 Oct
2009
21 Oct
'09
9:07 p.m.
Jacek Caban wrote:
Jacek Caban wrote:
argc = params->cArgs - params->cNamedArgs; width = argc >= 2 ? params->rgvarg+argc-1 : ∅ height = argc >= 1 ? params->rgvarg+argc-2 : ∅ I've made an obvious mistake here, but I guess it's easy to fix :)
Thanks for the help, Jacek. If I'm understanding you right, rgvarg points to the named parameters first, followed by the unnamed parameters in reverse order? In this case: <named params> <height> <width> If so, then this should work, yes? argc = params->cArgs - params->cNamedArgs; width = argc >= 1 ? params->rgvarg + (params->cArgs - 1) : ∅ height = argc >= 2 ? params->rgvarg + (params->cArgs - 2) : ∅