diff options
Diffstat (limited to 'test/data/emacs-module/mod-test.c')
| -rw-r--r-- | test/data/emacs-module/mod-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/data/emacs-module/mod-test.c b/test/data/emacs-module/mod-test.c index b7007bd80ff..a9154fa167d 100644 --- a/test/data/emacs-module/mod-test.c +++ b/test/data/emacs-module/mod-test.c | |||
| @@ -445,6 +445,11 @@ bind_function (emacs_env *env, const char *name, emacs_value Sfun) | |||
| 445 | int | 445 | int |
| 446 | emacs_module_init (struct emacs_runtime *ert) | 446 | emacs_module_init (struct emacs_runtime *ert) |
| 447 | { | 447 | { |
| 448 | /* Check that EMACS_MAJOR_VERSION is defined and an integral | ||
| 449 | constant. */ | ||
| 450 | char dummy[EMACS_MAJOR_VERSION]; | ||
| 451 | assert (27 <= sizeof dummy); | ||
| 452 | |||
| 448 | if (ert->size < sizeof *ert) | 453 | if (ert->size < sizeof *ert) |
| 449 | { | 454 | { |
| 450 | fprintf (stderr, "Runtime size of runtime structure (%"pT" bytes) " | 455 | fprintf (stderr, "Runtime size of runtime structure (%"pT" bytes) " |