diff options
| author | Paul Eggert | 2015-11-20 12:20:26 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-11-20 12:21:18 -0800 |
| commit | d0e07e0e2239771fd21b9525ea421cf7ba1cc97c (patch) | |
| tree | 6f603782a8b9c89816ab230842af20a7aec202e8 /src | |
| parent | 39d13206f3b37261bf4a2ebadfc1103414f4fd3e (diff) | |
| download | emacs-d0e07e0e2239771fd21b9525ea421cf7ba1cc97c.tar.gz emacs-d0e07e0e2239771fd21b9525ea421cf7ba1cc97c.zip | |
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')
| -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 | |||
| 196 | ptrdiff_t (*vec_size) (emacs_env *env, emacs_value vec); | 196 | ptrdiff_t (*vec_size) (emacs_env *env, emacs_value vec); |
| 197 | }; | 197 | }; |
| 198 | 198 | ||
| 199 | /* Every module should define a function as follows. */ | ||
| 200 | extern int emacs_module_init (struct emacs_runtime *ert); | ||
| 201 | |||
| 199 | #ifdef __cplusplus | 202 | #ifdef __cplusplus |
| 200 | } | 203 | } |
| 201 | #endif | 204 | #endif |