<rdar://problem/12099999> renaming SBStream::Printf to Print in the scripting world in order to avoid supporting varargs through SWIG
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@165274 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/interface/SBStream.i b/scripts/Python/interface/SBStream.i
index 8a6a8e5..3eca0dc 100644
--- a/scripts/Python/interface/SBStream.i
+++ b/scripts/Python/interface/SBStream.i
@@ -68,9 +68,15 @@
size_t
GetSize();
- void
- Printf (const char *format, ...);
-
+ // wrapping the variadic Printf() with a plain Print()
+ // because it is hard to support varargs in SWIG bridgings
+ %extend {
+ void Print (const char* str)
+ {
+ self->Printf(str);
+ }
+ }
+
void
RedirectToFile (const char *path, bool append);