summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-06-09 13:33:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-06-09 13:33:54 (GMT)
commita3fb4f78164e55ddecfd875b9b33791850213dfd (patch)
tree1dfd36be033b76aa1ce46a42e50ea570e130c68c /Include/Python.h
parentec5d6b908c25d45ffcf5b5ad60cdb51b38b6a769 (diff)
downloadcpython-a3fb4f78164e55ddecfd875b9b33791850213dfd.zip
cpython-a3fb4f78164e55ddecfd875b9b33791850213dfd.tar.gz
cpython-a3fb4f78164e55ddecfd875b9b33791850213dfd.tar.bz2
Patch #505375: Make doc strings optional.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 3f0fd9b..548ac75 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -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 */