diff options
author | Philipp Stephani <phst@google.com> | 2019-04-24 10:22:18 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2019-04-28 20:08:25 +0200 |
commit | 4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5 (patch) | |
tree | 0ed9322698c302f7e2190f570102cc41112c0d86 /src | |
parent | 24f717a5d7de80fdd6aa061f35d04144fe1c4e10 (diff) | |
download | emacs-4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5.tar.gz |
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/>. */ #include <gmp.h> #endif +#define EMACS_MAJOR_VERSION @emacs_major_version@ + #if defined __cplusplus && __cplusplus >= 201103L # define EMACS_NOEXCEPT noexcept #else |