diff options
author | Ed Maste <emaste@FreeBSD.org> | 2014-02-25 21:42:16 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2014-02-25 21:42:16 +0000 |
commit | 03b99097822ca3ac69252d9afae716a584ed56c4 (patch) | |
tree | e0f754ea0922908b0f1be8f01c4efbdfc20462eb /source/Interpreter/PythonDataObjects.cpp | |
parent | 866dcdacfe59f5f448e008fe2c4cb9dfcf72b2ec (diff) |
Diffstat (limited to 'source/Interpreter/PythonDataObjects.cpp')
-rw-r--r-- | source/Interpreter/PythonDataObjects.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 //---------------------------------------------------------------------- |