summaryrefslogtreecommitdiff
path: root/Include/Python.h
diff options
context:
space:
mode:
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 3f0fd9b1f0..548ac756cb 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 */