brintos

brintos / llvm-project-archived public Read only

0
0
Text · 718 B · ab9b376 Raw
21 lines · plain
1STRING_EXTENSION_OUTSIDE(SBCommandReturnObject)2 3%extend lldb::SBCommandReturnObject {4    // transfer_ownership does nothing, and is here for compatibility with5    // old scripts.  Ownership is tracked by reference count in the ordinary way.6 7    void SetImmediateOutputFile(lldb::FileSP BORROWED, bool transfer_ownership) {8        self->SetImmediateOutputFile(BORROWED);9    }10    void SetImmediateErrorFile(lldb::FileSP BORROWED, bool transfer_ownership) {11        self->SetImmediateErrorFile(BORROWED);12    }13 14    // wrapping the variadic Printf() with a plain Print()15    // because it is hard to support varargs in SWIG bridgings16    void Print (const char* str)17    {18        self->Printf("%s", str);19    }20}21