numpy  2.0.0
include/numpy/npy_no_deprecated_api.h
Go to the documentation of this file.
00001 /*
00002  * This include file is provided for inclusion in Cython *.pyd files where
00003  * one would like to define the NPY_NO_DEPRECATED_API macro. It can be
00004  * included by
00005  *
00006  * cdef extern from "npy_no_deprecated_api.h": pass
00007  *
00008  */
00009 #ifndef NPY_NO_DEPRECATED_API
00010 
00011 /* put this check here since there may be multiple includes in C extensions. */
00012 #if defined(NDARRAYTYPES_H) || defined(_NPY_DEPRECATED_API_H) || \
00013     defined(OLD_DEFINES_H)
00014 #error "npy_no_deprecated_api.h" must be first among numpy includes.
00015 #else
00016 #define NPY_NO_DEPRECATED_API NPY_API_VERSION
00017 #endif
00018 
00019 #endif