aboutsummaryrefslogtreecommitdiff
path: root/lldb/bindings/interface/SBProgressExtensions.i
blob: 6ecf3a1af93b7a92d0459023278929acdfbe2c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%extend lldb::SBProgress {
#ifdef SWIGPYTHON
    %pythoncode %{
        def __enter__(self):
            '''No-op for with statement'''
            pass

        def __exit__(self, exc_type, exc_value, traceback):
            '''Finalize the progress object'''
            self.Finalize()
    %}
#endif
}