xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBErrorExtensions.i (revision 7ab1a32cd43cbae61ad4dd435d6a482bbf61cb52)
1 STRING_EXTENSION_OUTSIDE(SBError)
2 
3 %extend lldb::SBError {
4 #ifdef SWIGPYTHON
5     %pythoncode %{
6         def __int__(self):
7             return self.GetError()
8 
9         value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
10         fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
11         success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
12         description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
13         type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
14     %}
15 #endif
16 }
17