diff options
| author | Philipp Stephani | 2019-04-28 17:40:41 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2019-04-28 17:40:41 +0200 |
| commit | 88c91f53dfd8d29475e2a4794da8b497b62cd53b (patch) | |
| tree | 3ee8f02888060deea0768619cfce872f65740e3e | |
| parent | 66a2c412be0dd21e3adeb766a44cc13fd80ba73c (diff) | |
| download | emacs-88c91f53dfd8d29475e2a4794da8b497b62cd53b.tar.gz emacs-88c91f53dfd8d29475e2a4794da8b497b62cd53b.zip | |
* src/emacs-module.c (funcall_module): Add a nontrivial assertion
| -rw-r--r-- | src/emacs-module.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index 685bdb8bb4c..6b56146ca01 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -902,6 +902,11 @@ funcall_module (Lisp_Object function, ptrdiff_t nargs, Lisp_Object *arglist) | |||
| 902 | memory_full (sizeof *args[i]); | 902 | memory_full (sizeof *args[i]); |
| 903 | } | 903 | } |
| 904 | 904 | ||
| 905 | /* The only possibility of getting an error until here is failure to | ||
| 906 | allocate memory for the arguments, but then we already should | ||
| 907 | have signaled an error before. */ | ||
| 908 | eassert (priv.pending_non_local_exit == emacs_funcall_exit_return); | ||
| 909 | |||
| 905 | emacs_value ret = func->subr (env, nargs, args, func->data); | 910 | emacs_value ret = func->subr (env, nargs, args, func->data); |
| 906 | 911 | ||
| 907 | eassert (&priv == env->private_members); | 912 | eassert (&priv == env->private_members); |