o TestEvents.py:

Add a usage example of SBEvent APIs.

o SBEvent.h and SBListener.h:

Add method docstrings for SBEvent.h and SBListener.h, and example usage of SBEvent into
the class docstring of SBEvent.

o lldb.swig:

Add typemap for SBEvent::SBEvent (uint32_t event, const char *cstr, uint32_t cstr_len)
so that we can use, in Python, obj2 = lldb.SBEvent(0, "abc") to create an SBEvent.

llvm-svn: 134766
This commit is contained in:
Johnny Chen
2011-07-08 23:02:33 +00:00
parent 129b4cc9ec
commit 3a709ac7bf
5 changed files with 209 additions and 3 deletions

View File

@@ -118,6 +118,7 @@ class APIDefaultConstructorTestCase(TestBase):
@python_api_test
def test_SBEvent(self):
obj = lldb.SBEvent()
obj2 = lldb.SBEvent(0, "abc")
if self.TraceOn():
print obj
self.assertFalse(obj)