diff Include/Python.h @ 23746:43ddcdcd3c71 legacy-trunk

Patch #505375: Make doc strings optional.
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 09 Jun 2002 13:33:54 +0000
parents 5f978196fd3d
children f7ce696979e1
line wrap: on
line diff
--- a/Include/Python.h	Sun Jun 09 09:08:53 2002 +0000
+++ b/Include/Python.h	Sun Jun 09 13:33:54 2002 +0000
@@ -146,4 +146,14 @@
 /* GNU pth user-space thread support */
 #include <pth.h>
 #endif
+
+/* Define macros for inline documentation. */
+#define PyDoc_VAR(name) static char name[]
+#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
+#ifdef WITH_DOC_STRINGS
+#define PyDoc_STR(str) str
+#else
+#define PyDoc_STR(str) ""
+#endif
+
 #endif /* !Py_PYTHON_H */