diff options
Diffstat (limited to 'src/emacs-module.c')
| -rw-r--r-- | src/emacs-module.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index afb75e351d2..adb09c0c506 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -349,6 +349,16 @@ module_non_local_exit_throw (emacs_env *env, emacs_value tag, emacs_value value) | |||
| 349 | value_to_lisp (value)); | 349 | value_to_lisp (value)); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | static struct Lisp_Module_Function * | ||
| 353 | allocate_module_function (void) | ||
| 354 | { | ||
| 355 | return ALLOCATE_PSEUDOVECTOR (struct Lisp_Module_Function, | ||
| 356 | min_arity, PVEC_MODULE_FUNCTION); | ||
| 357 | } | ||
| 358 | |||
| 359 | #define XSET_MODULE_FUNCTION(var, ptr) \ | ||
| 360 | XSETPSEUDOVECTOR (var, ptr, PVEC_MODULE_FUNCTION) | ||
| 361 | |||
| 352 | /* A module function is a pseudovector of subtype | 362 | /* A module function is a pseudovector of subtype |
| 353 | PVEC_MODULE_FUNCTION; see lisp.h for the definition. */ | 363 | PVEC_MODULE_FUNCTION; see lisp.h for the definition. */ |
| 354 | 364 | ||