diff options
| author | Philipp Stephani | 2020-01-04 03:21:32 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2020-01-04 03:21:32 +0100 |
| commit | 52db14b0dc5a93d7a7219917b8f603b14f94f24f (patch) | |
| tree | a1042bd0fd28926b72c547ac63120c675f10ef1e /src | |
| parent | cadf985cb68a760ef342d61572620cb215cf86fb (diff) | |
| download | emacs-52db14b0dc5a93d7a7219917b8f603b14f94f24f.tar.gz emacs-52db14b0dc5a93d7a7219917b8f603b14f94f24f.zip | |
emacs-module.h: Don't generate invalid C++11 code.
* src/emacs-module.h.in: Remove 'noexcept' from function pointer type
aliases. It is illegal there in C++11, see
https://en.cppreference.com/w/cpp/language/noexcept_spec.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs-module.h.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emacs-module.h.in b/src/emacs-module.h.in index b5ddd7d5fd8..e1bb00a3df6 100644 --- a/src/emacs-module.h.in +++ b/src/emacs-module.h.in | |||
| @@ -88,11 +88,11 @@ struct emacs_runtime | |||
| 88 | typedef emacs_value (*emacs_function) (emacs_env *env, ptrdiff_t nargs, | 88 | typedef emacs_value (*emacs_function) (emacs_env *env, ptrdiff_t nargs, |
| 89 | emacs_value *args, | 89 | emacs_value *args, |
| 90 | void *data) | 90 | void *data) |
| 91 | EMACS_NOEXCEPT EMACS_ATTRIBUTE_NONNULL (1); | 91 | EMACS_ATTRIBUTE_NONNULL (1); |
| 92 | 92 | ||
| 93 | /* Function prototype for module user-pointer and function finalizers. | 93 | /* Function prototype for module user-pointer and function finalizers. |
| 94 | These must not throw C++ exceptions. */ | 94 | These must not throw C++ exceptions. */ |
| 95 | typedef void (*emacs_finalizer) (void *data) EMACS_NOEXCEPT; | 95 | typedef void (*emacs_finalizer) (void *data); |
| 96 | 96 | ||
| 97 | /* Possible Emacs function call outcomes. */ | 97 | /* Possible Emacs function call outcomes. */ |
| 98 | enum emacs_funcall_exit | 98 | enum emacs_funcall_exit |