Skip to content
Commit 112f5696 authored by Johnny Chen's avatar Johnny Chen
Browse files

Add truth value testing to those lldb Python objects with the IsValid() method definitions.

object.__nonzero__(self) is called to implement truth value testing and the built-in operation bool(),
via a simple delegation to self.IsValid().

Change tests under python_api/lldbutil to utilize this mechanism.

llvm-svn: 131494
parent 5bd18b66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment