aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2019-04-28 17:40:41 +0200
committerPhilipp Stephani2019-04-28 17:40:41 +0200
commit88c91f53dfd8d29475e2a4794da8b497b62cd53b (patch)
tree3ee8f02888060deea0768619cfce872f65740e3e /src
parent66a2c412be0dd21e3adeb766a44cc13fd80ba73c (diff)
downloademacs-88c91f53dfd8d29475e2a4794da8b497b62cd53b.tar.gz
emacs-88c91f53dfd8d29475e2a4794da8b497b62cd53b.zip
* src/emacs-module.c (funcall_module): Add a nontrivial assertion
Diffstat (limited to 'src')
-rw-r--r--src/emacs-module.c5
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);