You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you include an old version of pythoncapi_compat.h header file and then include a new version of the header file, the new header is ignored by the global guard:
If you include an old version of pythoncapi_compat.h header file and then include a new version of the header file, the new header is ignored by the global guard:
It would be nice to support including multiple versions of the header file.
Use case:
The expected behavior is that the application gets the new definitions of the new copy, even if the old copy was already included.
The pybind11 project requires to support this use case: pybind/pybind11#2932 to be able to use pythoncapi_compat.h.
The idea is to have guards per function, rather than having a single global guard.
I'm not sure how the compiler selects which header file is used if there are two copies in the include directory paths.
The text was updated successfully, but these errors were encountered: