xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
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