<rdar://problem/12099999> renaming SBStream::Printf to Print in the scripting world in order to avoid supporting varargs through SWIG

llvm-svn: 165274
This commit is contained in:
Enrico Granata 2012-10-04 23:54:09 +00:00
parent 9f9e5826f2
commit 70fd574c2e
1 changed files with 9 additions and 3 deletions

View 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);