Branch: Tag:

2016-01-26

2016-01-26 19:38:42 by Martin Nilsson <nilsson@fastmail.com>

SIMPLE_BAD_ARG_ERROR is only kept for compatibility, but we still had 500+ uses of it.

165:    else if (TYPEOF(sp[-args]) == T_FLOAT)    mag=sp[-args].u.float_number;    else { -  SIMPLE_BAD_ARG_ERROR("orient",1,"int|float"); +  SIMPLE_ARG_TYPE_ERROR("orient",1,"int|float");    UNREACHABLE(mag=0.0);    }    }
177:    if (args>1)    {    if (TYPEOF(sp[1-args]) != T_ARRAY) -  SIMPLE_BAD_ARG_ERROR("orient",2,"array"); +  SIMPLE_ARG_TYPE_ERROR("orient",2,"array");    if (sp[1-args].u.array->size!=4)    Pike_error("The array given as argument 2 to orient do not have size 4\n");    for(i=0; i<4; i++)