param_t *param_factory_t::create_int_param( OFX::Host::Param::Descriptor *d) { float_param_t *p = new float_param_t( d->getShortLabel()); p->set_default_value( d->getProperties().getIntProperty( kOfxParamPropDefault, 0)); set_int_range( d, p); p->set_step( 1); p->set_round_to_int( true); return p; }
char *force_nthreads_int(const char *arg, int *i) { forced_n_threads = true; return set_int_range(arg, i, 0, 9999); }