Scierror(202, _("%s: Wrong type for argument #%d: A string expected.\n"), fname, 1);
return 1;
}
-
- if (nbCol != 1)
- {
- Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1);
- return FALSE;
- }
}
else
{
Scierror(202, _("%s: Wrong type for argument #%d: A string expected.\n"), fname, 1);
return 1;
}
-
- if (nbCol != 1)
- {
- Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1);
- return FALSE;
- }
}
else
{
Scierror(202, _("%s: Wrong type for argument #%d: A string expected.\n"), fname, 1);
return 1;
}
-
- if (nbCol != 1)
- {
- Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, 1);
- return FALSE;
- }
}
else
{
}
/* Default green value */
- if (VarType(firstColorIndex + 1) == sci_matrix)
+ if (checkInputArgumentType(pvApiCtx, firstColorIndex + 1, sci_matrix))
{
sciErr = getVarAddressFromPosition(pvApiCtx, firstColorIndex + 1, &piAddrgreenAdr);
if (sciErr.iErr)
}
/* Default blue value */
- if (VarType(firstColorIndex + 2) == sci_matrix)
+ if (checkInputArgumentType(pvApiCtx, firstColorIndex + 2, sci_matrix))
{
sciErr = getVarAddressFromPosition(pvApiCtx, firstColorIndex + 2, &piAddrblueAdr);
if (sciErr.iErr)