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.

1032:    }    SET_SVAL_TYPE_SUBTYPE(*f, PIKE_T_FUNCTION, write_fun_num);    } else { -  SIMPLE_BAD_ARG_ERROR("output_to", 1, "object|function"); +  SIMPLE_ARG_TYPE_ERROR("output_to", 1, "object|function");    }    } else if (UNLIKELY(TYPEOF(*f) != PIKE_T_FUNCTION)) { -  SIMPLE_BAD_ARG_ERROR("output_to", 1, "object|function"); +  SIMPLE_ARG_TYPE_ERROR("output_to", 1, "object|function");    } else {    write_fun_num = SUBTYPEOF(*f);    }