mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-21 10:42:35 +00:00

Instead of maintaining separate swig interface files, we can use the API headers directly. They implement the exact same C++ APIs and we can conditionally include the python extensions as needed. To remove the swig extensions from the API headers when building the LLDB framework, we can use the unifdef tool when it is available. Otherwise we just copy them as-is. Differential Revision: https://reviews.llvm.org/D142926
14 lines
695 B
OpenEdge ABL
14 lines
695 B
OpenEdge ABL
STRING_EXTENSION_OUTSIDE(SBError)
|
|
|
|
%extend lldb::SBError {
|
|
#ifdef SWIGPYTHON
|
|
%pythoncode %{
|
|
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
|
|
}
|