Made NULL, nil, and Nil use the appropriate
authorSean Callanan <scallanan@apple.com>
Wed, 13 Feb 2013 21:53:01 +0000 (21:53 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 13 Feb 2013 21:53:01 +0000 (21:53 +0000)
builtins.

<rdar://problem/13204027>

llvm-svn: 175091

lldb/source/Expression/ExpressionSourceCode.cpp

index 1441881..835d9d7 100644 (file)
@@ -19,9 +19,9 @@ static const char *global_defines =
 "#undef nil                        \n"
 "#undef YES                        \n"
 "#undef NO                         \n"
-"#define NULL ((int)0)             \n"
-"#define Nil ((Class)0)            \n"
-"#define nil ((id)0)               \n"
+"#define NULL (__null)             \n"
+"#define Nil (__null)              \n"
+"#define nil (__null)              \n"
 "#define YES ((BOOL)1)             \n"
 "#define NO ((BOOL)0)              \n"
 "typedef signed char BOOL;         \n"