summaryrefslogtreecommitdiffstats
path: root/Include/cpython/code.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/code.h')
-rw-r--r--Include/cpython/code.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h
index af9149b..2561b2b 100644
--- a/Include/cpython/code.h
+++ b/Include/cpython/code.h
@@ -174,6 +174,11 @@ struct PyCodeObject _PyCode_DEF(1);
#define CO_NO_MONITORING_EVENTS 0x2000000
+/* Whether the code object has a docstring,
+ If so, it will be the first item in co_consts
+*/
+#define CO_HAS_DOCSTRING 0x4000000
+
/* This should be defined if a future statement modifies the syntax.
For example, when a keyword is added.
*/