diff options
| author | Philipp Stephani | 2019-04-24 10:22:18 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2019-04-28 20:08:25 +0200 |
| commit | 4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5 (patch) | |
| tree | 0ed9322698c302f7e2190f570102cc41112c0d86 /src | |
| parent | 24f717a5d7de80fdd6aa061f35d04144fe1c4e10 (diff) | |
| download | emacs-4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5.tar.gz emacs-4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5.zip | |
Export major version of latest Emacs supported by emacs-module.h.
This is useful if module authors want to support multiple versions of
emacs-module.h.
* configure.ac (emacs_major_version): Define substitution.
* src/emacs-module.h.in (EMACS_MAJOR_VERSION): Define macro.
* doc/lispref/internals.texi (Module Initialization): Document
EMACS_MAJOR_VERSION preprocessor macro.
* test/data/emacs-module/mod-test.c (emacs_module_init): Verify
behavior of EMACS_MAJOR_VERSION.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs-module.h.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emacs-module.h.in b/src/emacs-module.h.in index fbc62a61ef4..9955e30eb7a 100644 --- a/src/emacs-module.h.in +++ b/src/emacs-module.h.in | |||
| @@ -32,6 +32,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 32 | #include <gmp.h> | 32 | #include <gmp.h> |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #define EMACS_MAJOR_VERSION @emacs_major_version@ | ||
| 36 | |||
| 35 | #if defined __cplusplus && __cplusplus >= 201103L | 37 | #if defined __cplusplus && __cplusplus >= 201103L |
| 36 | # define EMACS_NOEXCEPT noexcept | 38 | # define EMACS_NOEXCEPT noexcept |
| 37 | #else | 39 | #else |