diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-10 20:01:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-10 20:01:45 +0100 |
commit | 95f096030ed1a8afea028f2ea295d6f6a70f466f (patch) | |
tree | 9b1dcdbbe678ad1a3152f5cfd70a136efce6bc92 /src/userfunc.c | |
parent | 459ca563128f2edb7e3bb190090bbb755a56dd55 (diff) | |
download | vim-git-95f096030ed1a8afea028f2ea295d6f6a70f466f.tar.gz |
patch 8.0.0074v8.0.0074
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
Diffstat (limited to 'src/userfunc.c')
-rw-r--r-- | src/userfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index c75ccbc32..369d92ad6 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -2771,7 +2771,7 @@ func_unref(char_u *name) #ifdef EXITFREE if (!entered_free_all_mem) #endif - EMSG2(_(e_intern2), "func_unref()"); + internal_error("func_unref()"); } if (fp != NULL && --fp->uf_refcount <= 0) { @@ -2814,7 +2814,7 @@ func_ref(char_u *name) else if (isdigit(*name)) /* Only give an error for a numbered function. * Fail silently, when named or lambda function isn't found. */ - EMSG2(_(e_intern2), "func_ref()"); + internal_error("func_ref()"); } /* |