char *errormsg = NULL; // error message
cctx_T cctx;
garray_T *instr;
- int called_emsg_before = called_emsg;
+ int did_emsg_before = did_emsg;
int ret = FAIL;
sctx_T save_current_sctx = current_sctx;
int save_estack_compiling = estack_compiling;
int do_estack_push;
- int emsg_before = called_emsg;
int new_def_function = FALSE;
// When using a function that was compiled before: Free old instructions.
// Bail out on the first error to avoid a flood of errors and report
// the right line number when inside try/catch.
- if (emsg_before != called_emsg)
+ if (did_emsg_before != did_emsg)
goto erret;
if (line != NULL && *line == '|')
// beyond the last line
break;
}
- emsg_before = called_emsg;
CLEAR_FIELD(ea);
ea.cmdlinep = &line;
if (errormsg != NULL)
emsg(errormsg);
- else if (called_emsg == called_emsg_before)
+ else if (did_emsg == did_emsg_before)
emsg(_(e_compiling_def_function_failed));
}
int defcount = ufunc->uf_args.ga_len - argc;
sctx_T save_current_sctx = current_sctx;
int breakcheck_count = 0;
- int called_emsg_before = called_emsg;
+ int did_emsg_before = did_emsg;
int save_suppress_errthrow = suppress_errthrow;
msglist_T **saved_msg_list = NULL;
msglist_T *private_msg_list = NULL;
|| (ufunc->uf_def_status == UF_TO_BE_COMPILED
&& compile_def_function(ufunc, FALSE, NULL) == FAIL))
{
- if (called_emsg == called_emsg_before)
+ if (did_emsg == did_emsg_before)
semsg(_(e_function_is_not_compiled_str),
printable_func_name(ufunc));
return FAIL;
// Not sure if this is necessary.
suppress_errthrow = save_suppress_errthrow;
- if (ret != OK && called_emsg == called_emsg_before)
+ if (ret != OK && did_emsg == did_emsg_before)
semsg(_(e_unknown_error_while_executing_str),
printable_func_name(ufunc));
return ret;