printf("ARGUMENT_NULL in function %s, at line %i in file %s, argument \"%s\"\n",__FUNCTION__,__LINE__,__FILE__,"sourceArray");
#endif
return;
}
if(!destinationArray)
{
#if DEBUG
printf("ARGUMENT_NULL in function %s, at line %i in file %s, argument \"%s\"\n",__FUNCTION__,__LINE__,__FILE__,"destinationArray");
#endif
return;
}
if(sourceIndex<0)
{
#if DEBUG
printf("ARGUMENT_OUT_OF_RANGE in function %s, at line %i in file %s, argument \"%s\": %s\n",__FUNCTION__,__LINE__,__FILE__,"sourceIndex must be 0 or greater");
#endif
return;
}
if(destinationIndex<0)
{
#if DEBUG
printf("ARGUMENT_OUT_OF_RANGE in function %s, at line %i in file %s, argument \"%s\": %s\n",__FUNCTION__,__LINE__,__FILE__,"destinationIndex must be 0 or greater");
#endif
return;
}
if((sourceIndex+length)>Length(sourceArray))
{
#if DEBUG
printf("ARGUMENT in function %s, at line %i in file %s\n",__FUNCTION__,__LINE__,__FILE__);
printf("ARGUMENT_NULL in function %s, at line %i in file %s, argument \"%s\"\n",__FUNCTION__,__LINE__,__FILE__,"array");
#endif
return;
}
if((Length(array)-index)<length)
{
#if DEBUG
printf("ARGUMENT in function %s, at line %i in file %s: %s\n",__FUNCTION__,__LINE__,__FILE__,"Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.");