xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBErrorExtensions.i (revision e0919a4bac2b57a086688ae8ec58058b91f61d86)
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