xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBErrorExtensions.i (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
106c3fb27SDimitry Andric STRING_EXTENSION_OUTSIDE(SBError)
206c3fb27SDimitry Andric 
306c3fb27SDimitry Andric %extend lldb::SBError {
406c3fb27SDimitry Andric #ifdef SWIGPYTHON
506c3fb27SDimitry Andric     %pythoncode %{
6*5f757f3fSDimitry Andric         def __int__(self):
7*5f757f3fSDimitry Andric             return self.GetError()
8*5f757f3fSDimitry Andric 
906c3fb27SDimitry Andric         value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
1006c3fb27SDimitry Andric         fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
1106c3fb27SDimitry Andric         success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
1206c3fb27SDimitry Andric         description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
1306c3fb27SDimitry Andric         type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
1406c3fb27SDimitry Andric     %}
1506c3fb27SDimitry Andric #endif
1606c3fb27SDimitry Andric }
17