xref: /freebsd/contrib/llvm-project/lldb/bindings/interface/SBProgressExtensions.i (revision 700637cbb5e582861067a11aaca4d053546871d2)
1 %extend lldb::SBProgress {
2 #ifdef SWIGPYTHON
3     %pythoncode %{
4         def __enter__(self):
5             '''No-op for with statement'''
6             pass
7 
8         def __exit__(self, exc_type, exc_value, traceback):
9             '''Finalize the progress object'''
10             self.Finalize()
11     %}
12 #endif
13 }