[Lldb-commits] [lldb] r175091 - Made NULL, nil, and Nil use the appropriate
Sean Callanan
scallanan at apple.com
Wed Feb 13 13:53:01 PST 2013
Author: spyffe
Date: Wed Feb 13 15:53:01 2013
New Revision: 175091
URL: http://llvm.org/viewvc/llvm-project?rev=175091&view=rev
Log:
Made NULL, nil, and Nil use the appropriate
builtins.
<rdar://problem/13204027>
Modified:
lldb/trunk/source/Expression/ExpressionSourceCode.cpp
Modified: lldb/trunk/source/Expression/ExpressionSourceCode.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ExpressionSourceCode.cpp?rev=175091&r1=175090&r2=175091&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ExpressionSourceCode.cpp (original)
+++ lldb/trunk/source/Expression/ExpressionSourceCode.cpp Wed Feb 13 15:53:01 2013
@@ -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"
More information about the lldb-commits
mailing list