diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-11-20 12:20:26 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-11-20 12:21:18 -0800 |
commit | d0e07e0e2239771fd21b9525ea421cf7ba1cc97c (patch) | |
tree | 6f603782a8b9c89816ab230842af20a7aec202e8 /src/emacs-module.h | |
parent | 39d13206f3b37261bf4a2ebadfc1103414f4fd3e (diff) | |
download | emacs-d0e07e0e2239771fd21b9525ea421cf7ba1cc97c.tar.gz |
Declare emacs_module_init in the module API
* src/emacs-module.h (emacs_module_init): New decl.
Without it, GCC might complain about a module that defines
emacs_module_init without using it. This also checks the
API better.
Diffstat (limited to 'src/emacs-module.h')
-rw-r--r-- | src/emacs-module.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emacs-module.h b/src/emacs-module.h index 4d204d0b96f..06fc4c07020 100644 --- a/src/emacs-module.h +++ b/src/emacs-module.h @@ -196,6 +196,9 @@ struct emacs_env_25 ptrdiff_t (*vec_size) (emacs_env *env, emacs_value vec); }; +/* Every module should define a function as follows. */ +extern int emacs_module_init (struct emacs_runtime *ert); + #ifdef __cplusplus } #endif |