changeset 29953:e35442c969f5

provide macros for beginning and ending octave namespace * oct-conf-post.in.h (OCTAVE_NAMESPACE_BEGIN, OCTAVE_NAMESPACE_END): New macros. * mk-octave-config-h.sh: Emit OCTAVE_NAMESPACE_BEGIN and OCTAVE_NAMESPACE_END macros.
author John W. Eaton <jwe@octave.org>
date Sat, 14 Aug 2021 10:40:21 -0400
parents f2eaf14ff6c3
children 4c88a452519c
files build-aux/mk-octave-config-h.sh oct-conf-post.in.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build-aux/mk-octave-config-h.sh	Sat Aug 14 10:25:13 2021 -0400
+++ b/build-aux/mk-octave-config-h.sh	Sat Aug 14 10:40:21 2021 -0400
@@ -111,6 +111,9 @@
 #    include <inttypes.h>
 #  endif
 
+#  define OCTAVE_NAMESPACE_BEGIN namespace octave {
+#  define OCTAVE_NAMESPACE_END }
+
 #  if defined (__GNUC__)
 #    if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
 #      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__ ("[" #ver "]: " msg)))
--- a/oct-conf-post.in.h	Sat Aug 14 10:25:13 2021 -0400
+++ b/oct-conf-post.in.h	Sat Aug 14 10:40:21 2021 -0400
@@ -23,6 +23,9 @@
 //
 ////////////////////////////////////////////////////////////////////////
 
+#  define OCTAVE_NAMESPACE_BEGIN namespace octave {
+#  define OCTAVE_NAMESPACE_END }
+
 /* The C++ standard is evolving to allow attribute hints in a
    compiler-independent manner.  In C++ 2011 support for noreturn was
    added.  In C++ 2014 support for deprecated was added.  The Octave