display proc name in error message raised from pic_get_args
This commit is contained in:
+2
-1
@@ -96,7 +96,8 @@ pic_get_args(pic_state *pic, const char *format, ...)
|
||||
/* check argc. */
|
||||
if (argc < paramc || (paramc + optc < argc && ! rest)) {
|
||||
pic_errorf(pic, "%s: wrong number of arguments (%d for %s%d)",
|
||||
"procname", argc,
|
||||
pic_symbol_name(pic, pic_proc_name(pic_proc_ptr(GET_OPERAND(pic, 0)))) ,
|
||||
argc,
|
||||
rest? "at least " : "",
|
||||
paramc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user