aboutsummaryrefslogtreecommitdiff
path: root/lldb/bindings/interface/SBHostOSExtensions.i
blob: eb2e124b492976f549566d8116f919ea3f2957e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%extend lldb::SBHostOS {
#ifdef SWIGPYTHON
    // operator== is a free function, which swig does not handle, so we inject
    // our own equality operator here
    %pythoncode%{
    def __eq__(self, other):
      return not self.__ne__(other)

    def __int__(self):
      pass

    def __hex__(self):
      pass

    def __oct__(self):
      pass

    def __len__(self):
      pass

    def __iter__(self):
      pass
    %}
#endif
}