xref: /llvm-project/lldb/bindings/interface/SBErrorExtensions.i (revision 6813ef37377e8d8fadf6efe01e1ed80cc53b9c86)
1662548c8SAlex Langford STRING_EXTENSION_OUTSIDE(SBError)
2662548c8SAlex Langford 
3662548c8SAlex Langford %extend lldb::SBError {
4662548c8SAlex Langford #ifdef SWIGPYTHON
5662548c8SAlex Langford     %pythoncode %{
6*6813ef37SMed Ismail Bennani         def __int__(self):
7*6813ef37SMed Ismail Bennani             return self.GetError()
8*6813ef37SMed Ismail Bennani 
9662548c8SAlex Langford         value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
10662548c8SAlex Langford         fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
11662548c8SAlex Langford         success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
12662548c8SAlex Langford         description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
13662548c8SAlex Langford         type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
14662548c8SAlex Langford     %}
15662548c8SAlex Langford #endif
16662548c8SAlex Langford }
17