From 03b99097822ca3ac69252d9afae716a584ed56c4 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 25 Feb 2014 21:42:16 +0000 Subject: Import LLDB as of SVN r202189 (git 32871eb) (A number of files not required for the FreeBSD build have been removed.) Sponsored by: DARPA, AFRL --- source/Interpreter/PythonDataObjects.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/Interpreter/PythonDataObjects.cpp') diff --git a/source/Interpreter/PythonDataObjects.cpp b/source/Interpreter/PythonDataObjects.cpp index 01f2754a2cc9..053ff34b9d77 100644 --- a/source/Interpreter/PythonDataObjects.cpp +++ b/source/Interpreter/PythonDataObjects.cpp @@ -84,6 +84,12 @@ PythonObject::Str () return PythonString(str); } +bool +PythonObject::IsNULLOrNone () const +{ + return ((m_py_obj == nullptr) || (m_py_obj == Py_None)); +} + //---------------------------------------------------------------------- // PythonString //---------------------------------------------------------------------- -- cgit v1.2.3