diff options
Diffstat (limited to 'contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i')
-rw-r--r-- | contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i b/contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i new file mode 100644 index 000000000000..507c11a91d34 --- /dev/null +++ b/contrib/llvm-project/lldb/bindings/interface/SBScriptObjectExtensions.i @@ -0,0 +1,13 @@ +%extend lldb::SBScriptObject { +#ifdef SWIGPYTHON + %pythoncode %{ + # operator== is a free function, which swig does not handle, so we inject + # our own equality operator here + def __eq__(self, other): + return not self.__ne__(other) + + ptr = property(GetPointer, None, doc='''A read only property that returns the underlying script object.''') + lang = property(GetLanguage, None, doc='''A read only property that returns the script language associated with with this script object.''') + %} +#endif +} |