summaryrefslogtreecommitdiff
path: root/lldb/bindings/interface/SBTypeFormatExtensions.i
blob: cde1d72a1ffcb41f869fbeb4a11a94defb11f1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
STRING_EXTENSION_LEVEL_OUTSIDE(SBTypeFormat, lldb::eDescriptionLevelBrief)
%extend lldb::SBTypeFormat {
#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)

            format = property(GetFormat, SetFormat)
            options = property(GetOptions, SetOptions)
        %}
#endif
}