Mercurial > octave
diff liboctave/util/quit.h @ 31487:2ec625c04947 stable
Mark exceptions with default visibility also where they are used (bug #61704).
For exceptions that are thrown across library borders to work correctly, the
definition of those exceptions needs to be attributed with default visibility
both in the library where they are defined and in the code where they are
caught.
* oct-conf-post-public.in.h: Add new preprocessor macros for visibility
attributes of exception classes.
* liboctave/util/quit.h (execution_exception),
liboctave/util/lo-array-errwarn.h (index_exception): Use new preprocessor macro
to flag exception classes that are thrown across library borders.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 19 Nov 2022 16:55:11 +0100 |
parents | 83f9f8bda883 |
children | 45c9efbc5501 |
line wrap: on
line diff
--- a/liboctave/util/quit.h Sat Nov 19 17:17:33 2022 +0100 +++ b/liboctave/util/quit.h Sat Nov 19 16:55:11 2022 +0100 @@ -89,7 +89,7 @@ && a.column () == b.column ()); } - class OCTAVE_API execution_exception : public std::runtime_error + class OCTAVE_EXCEPTION_API execution_exception : public std::runtime_error { public: