why include cpython/*.h, Need this macro ? # error "this header file must not be included directly"
10 Jan
2021
10 Jan
'21
7:53 a.m.
#ifndef Py_LIMITED_API # define Py_CPYTHON_FILEOBJECT_H # include "cpython/fileobject.h" # undef Py_CPYTHON_FILEOBJECT_H #endif cpython/fileobject.h ``` #ifndef Py_CPYTHON_FILEOBJECT_H # error "this header file must not be included directly" #endif ``` why not use #ifndef #define cpython/fileobject.h #ifndef Py_CPYTHON_FILEOBJECT_H #define Py_CPYTHON_FILEOBJECT_H .... #endif /* Py_CPYTHON_FILEOBJECT_H */
1173
Age (days ago)
1174
Last active (days ago)
2 comments
3 participants
participants (3)
-
junyixie
-
Serhiy Storchaka
-
Victor Stinner