xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i (revision cf8e5289a110954600f135024d1515a77d0ae34d)
1 %extend lldb::SBScriptObject {
2 #ifdef SWIGPYTHON
3     %pythoncode %{
4         # operator== is a free function, which swig does not handle, so we inject
5         # our own equality operator here
6         def __eq__(self, other):
7             return not self.__ne__(other)
8 
9         ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''')
10         lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''')
11     %}
12 #endif
13 }
14