]> git.eshelyaron.com Git - emacs.git/commitdiff
emacs-module.h: Don't generate invalid C++11 code.
authorPhilipp Stephani <phst@google.com>
Sat, 4 Jan 2020 02:21:32 +0000 (03:21 +0100)
committerPhilipp Stephani <phst@google.com>
Sat, 4 Jan 2020 02:21:32 +0000 (03:21 +0100)
* 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.

src/emacs-module.h.in

index b5ddd7d5fd8a1b17d4a8bf538e7072c0ea66350b..e1bb00a3df6a0cce13c6581ac3bf9e340eb7e494 100644 (file)
@@ -88,11 +88,11 @@ struct emacs_runtime
 typedef emacs_value (*emacs_function) (emacs_env *env, ptrdiff_t nargs,
                                        emacs_value *args,
                                        void *data)
-  EMACS_NOEXCEPT EMACS_ATTRIBUTE_NONNULL (1);
+  EMACS_ATTRIBUTE_NONNULL (1);
 
 /* Function prototype for module user-pointer and function finalizers.
    These must not throw C++ exceptions.  */
-typedef void (*emacs_finalizer) (void *data) EMACS_NOEXCEPT;
+typedef void (*emacs_finalizer) (void *data);
 
 /* Possible Emacs function call outcomes.  */
 enum emacs_funcall_exit