projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66a2c41
)
* src/emacs-module.c (funcall_module): Add a nontrivial assertion
author
Philipp Stephani
<phst@google.com>
Sun, 28 Apr 2019 15:40:41 +0000
(17:40 +0200)
committer
Philipp Stephani
<phst@google.com>
Sun, 28 Apr 2019 15:40:41 +0000
(17:40 +0200)
src/emacs-module.c
patch
|
blob
|
history
diff --git
a/src/emacs-module.c
b/src/emacs-module.c
index 685bdb8bb4c09cc3c27c78a61ca49e23f38efc82..6b56146ca011c29000bc3b6bb53603598745ebcc 100644
(file)
--- 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)
memory_full (sizeof *args[i]);
}
+ /* The only possibility of getting an error until here is failure to
+ allocate memory for the arguments, but then we already should
+ have signaled an error before. */
+ eassert (priv.pending_non_local_exit == emacs_funcall_exit_return);
+
emacs_value ret = func->subr (env, nargs, args, func->data);
eassert (&priv == env->private_members);