interrogate: add back NULL definition, fixes some keyword arguments
I am not sure why the definition of NULL was removed; it might have been by mistake, but in any case it broke code like this:
img = PNMImage(w, h, color_space=CS_srgb)
since it would not understand the default value (NULL) for the argument preceding color_space.
This commit is contained in:
parent
94476fd1f0
commit
552a649ef3
|
|
@ -41,6 +41,11 @@ inline namespace std {
|
|||
|
||||
struct timeval;
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0L
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
typedef decltype(nullptr) nullptr_t;
|
||||
|
||||
// One day, we might extend interrogate to be able to parse this,
|
||||
|
|
|
|||
Loading…
Reference in New Issue