aboutsummaryrefslogtreecommitdiff
path: root/lldb/bindings/interface/SBErrorExtensions.i
blob: d2bdc40b99381bcfc2f55ad5533b677bed30aacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
STRING_EXTENSION_OUTSIDE(SBError)

%extend lldb::SBError {
#ifdef SWIGPYTHON
    %pythoncode %{
        def __int__(self):
            return self.GetError()

        value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
        fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
        success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
        description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
        type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
    %}
#endif
}