mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Patch #505375: Make doc strings optional.
This commit is contained in:
parent
ec5d6b908c
commit
a3fb4f7816
6 changed files with 111 additions and 31 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue