From 788502c6f6261e2d84ef85d1052b41a6c5be31b3 Mon Sep 17 00:00:00 2001 From: emaste 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 01f2754..053ff34 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.1