Explorar o código

ENH: Added KWSYS_NAMESPACE_STRING macro.

Brad King %!s(int64=22) %!d(string=hai) anos
pai
achega
8da78710bc
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      Source/kwsys/kwsysPrivate.h

+ 8 - 0
Source/kwsys/kwsysPrivate.h

@@ -33,6 +33,14 @@
 #define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
 #define KWSYS_HEADER1(x) <x>
 
+/*
+  Define KWSYS_NAMESPACE_STRING to be a string constant containing the
+  name configured for this instance of the kwsys library.
+*/
+#define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
+#define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
+#define KWSYS_NAMESPACE_STRING1(x) #x
+
 #else
 # error "kwsysPrivate.h included multiple times."
 #endif