Branch: Tag:

2018-09-29

2018-09-29 13:34:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Cpp: Adjusted error messages.

226:    */    } else {    if (context_obj) { -  push_text("Expected %d arguments to macro %s, got none."); +  push_text("Expected %d arguments to macro %s(), got none.");    push_int(d->args);    ref_push_string(d->name);    apply(context_obj, "cpp_error", 3);    } else { -  my_yyerror("Expected %d argumnets to macro %S, got none.", +  my_yyerror("Expected %d arguments to macro %S(), got none.",    d->args, d->name);    }    push_int(0);
244:    (d->args > arguments2->size+1)) {    /* Allow varargs to be left out. */    if (context_obj) { -  push_text("Bad number of arguments to macro %s, expected %d" +  push_text("Bad number of arguments to macro %s(), expected %d"    ", got %d.");    ref_push_string(d->name);    push_int(d->args);    push_int(arguments2->size);    apply(context_obj, "cpp_error", 4);    } else { -  my_yyerror("Bad number of arguments to macro %S, expected %d" +  my_yyerror("Bad number of arguments to macro %S(), expected %d"    ", got %d.",    d->name, d->args, arguments2->size);    }