mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Remove WITH_DEBUG compilation flag, non-debug code relies on interface existence
This commit is contained in:
parent
8b8f150d37
commit
9385de58a7
|
@ -96,8 +96,6 @@
|
||||||
#define WITH_THREADING /* "friendly" threading support */
|
#define WITH_THREADING /* "friendly" threading support */
|
||||||
#define WITH_UNSHARPMASK /* Kevin Cazabon's unsharpmask module */
|
#define WITH_UNSHARPMASK /* Kevin Cazabon's unsharpmask module */
|
||||||
|
|
||||||
#define WITH_DEBUG /* extra debugging interfaces */
|
|
||||||
|
|
||||||
#undef VERBOSE
|
#undef VERBOSE
|
||||||
|
|
||||||
#define CLIP(x) ((x) <= 0 ? 0 : (x) < 256 ? (x) : 255)
|
#define CLIP(x) ((x) <= 0 ? 0 : (x) < 256 ? (x) : 255)
|
||||||
|
@ -2922,8 +2920,6 @@ _getcodecstatus(PyObject* self, PyObject* args)
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
#ifdef WITH_DEBUG
|
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
_save_ppm(ImagingObject* self, PyObject* args)
|
_save_ppm(ImagingObject* self, PyObject* args)
|
||||||
{
|
{
|
||||||
|
@ -2939,7 +2935,6 @@ _save_ppm(ImagingObject* self, PyObject* args)
|
||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
@ -3035,9 +3030,7 @@ static struct PyMethodDef methods[] = {
|
||||||
{"new_array", (PyCFunction)_new_array, 1},
|
{"new_array", (PyCFunction)_new_array, 1},
|
||||||
{"new_block", (PyCFunction)_new_block, 1},
|
{"new_block", (PyCFunction)_new_block, 1},
|
||||||
|
|
||||||
#ifdef WITH_DEBUG
|
|
||||||
{"save_ppm", (PyCFunction)_save_ppm, 1},
|
{"save_ppm", (PyCFunction)_save_ppm, 1},
|
||||||
#endif
|
|
||||||
|
|
||||||
{NULL, NULL} /* sentinel */
|
{NULL, NULL} /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user