<rdar://problem/12099999> renaming SBStream::Printf to Print in the scripting world...
authorEnrico Granata <egranata@apple.com>
Thu, 4 Oct 2012 23:54:09 +0000 (23:54 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 4 Oct 2012 23:54:09 +0000 (23:54 +0000)
llvm-svn: 165274

lldb/scripts/Python/interface/SBStream.i

index 8a6a8e5..3eca0dc 100644 (file)
@@ -68,9 +68,15 @@ public:
     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);