version 1.1 | | version 1.2 |
---|
| | |
return *( int* )cfapiObject_get_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT );
| | return *( int* )cfapiObject_get_property( &val, ob, CFAPI_OBJECT_PROP_WEIGHT );
|
}
| | }
|
| |
|
void cf_object_set_nrof( object* ob, int nrof )
| | /**
|
| | * @return -1=nrof is invalid, 0=nrof is ok#
|
| | */
|
| | int cf_object_set_nrof( object* ob, int nrof )
|
{
| | {
|
int val;
| | int val;
|
| |
|
| | if (nrof < 0)
|
| | return -1;
|
| |
|
cfapiObject_set_property( &val, ob, CFAPI_OBJECT_PROP_NROF, nrof );
| | cfapiObject_set_property( &val, ob, CFAPI_OBJECT_PROP_NROF, nrof );
|
| | return 0;
|
}
| | }
|
| |
|
int cf_object_get_nrof( object* ob )
| | int cf_object_get_nrof( object* ob )
|