We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 375a009 commit 3d5994eCopy full SHA for 3d5994e
objc/runtime.h
@@ -202,13 +202,17 @@ typedef struct
202
#ifdef __GNUC
203
# define _OBJC_NULL_PTR __null
204
#elif defined(__cplusplus)
205
-# define _OBJC_NULL_PTR 0
+# if __has_feature(cxx_nullptr)
206
+# define _OBJC_NULL_PTR nullptr
207
+# else
208
+# define _OBJC_NULL_PTR 0
209
+# endif
210
#else
211
# define _OBJC_NULL_PTR ((void*)0)
212
#endif
213
214
#ifndef nil
-# define nil ((id)_OBJC_NULL_PTR)
215
+# define nil _OBJC_NULL_PTR
216
217
218
#ifndef Nil
0 commit comments