changeset 30724:53b125563b49

error.h: Don't export functions that are defined in header. * libinterp/corefcn/error.h (panic_if, panic_unless, error_if, error_unless): These functions are defined as inline in this header. Don't export them from our library and don't try to import them when included in dependent projects.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 08 Feb 2022 11:54:36 +0100
parents 08b08b7f05b2
children 0cf772732981
files libinterp/corefcn/error.h
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/error.h	Mon Feb 07 21:47:53 2022 -0800
+++ b/libinterp/corefcn/error.h	Tue Feb 08 11:54:36 2022 +0100
@@ -508,8 +508,8 @@
 #define panic_impossible()                                              \
   panic ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__)
 
-OCTINTERP_API inline
-void panic_if (bool cond)
+inline void
+panic_if (bool cond)
 {
 #ifndef NDEBUG
   if (cond)
@@ -519,8 +519,8 @@
 #endif
 }
 
-OCTINTERP_API inline
-void panic_unless (bool cond)
+inline void
+panic_unless (bool cond)
 {
   panic_if (! cond);
 }
@@ -528,8 +528,8 @@
 #define error_impossible()                                              \
   error ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__)
 
-OCTINTERP_API inline
-void error_if (bool cond)
+inline void
+error_if (bool cond)
 {
 #ifndef NDEBUG
   if (cond)
@@ -539,8 +539,8 @@
 #endif
 }
 
-OCTINTERP_API inline
-void error_unless (bool cond)
+inline void
+error_unless (bool cond)
 {
   error_if (! cond);
 }