Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: core: Create a header in which to move deprecated API
- Loading branch information
Showing
2 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef _NPY_DEPRECATED_API_H | ||
#define _NPY_DEPRECATED_API_H | ||
|
||
/* | ||
* This header exists to collect all dangerous/deprecated NumPy API. | ||
* | ||
* This is an attempt to remove bad API, the proliferation of macros, | ||
* and namespace pollution currently produced by the NumPy headers. | ||
*/ | ||
|
||
#ifdef NPY_NO_DEPRECATED_API | ||
#error Should never include npy_deprecated_api directly. | ||
#endif | ||
|
||
/* These array flags are deprecated as of NumPy 1.7 */ | ||
#define NPY_CONTIGUOUS NPY_ARRAY_C_CONTIGUOUS | ||
#define NPY_FORTRAN NPY_ARRAY_F_CONTIGUOUS | ||
|
||
#endif |