Branch: Tag:

2014-08-25

2014-08-25 18:29:35 by Martin Nilsson <nilsson@opera.com>

More consistent use of error macros.

539:    {    int max;    if (TYPEOF(sp[j-args]) != T_STRING) -  bad_arg_error("font->write",sp-args,args,0,"",sp-args, -  "Bad arguments to font->write()\n"); +  SIMPLE_BAD_ARG_ERROR("write",1,"string");       xsize = max = 1;    to_write_len = sp[j-args].u.string->len;
761:    p_wchar2 *to_write2;    ptrdiff_t to_write_len;    if (TYPEOF(sp[j-args]) != T_STRING) -  bad_arg_error("font->text_extents",sp-args,args,0,"",sp-args, -  "Bad arguments to font->text_extents()\n"); +  SIMPLE_BAD_ARG_ERROR("text_extents",1,"string");       xsize = max = 1;    to_write_len = sp[j-args].u.string->len;