mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Added function printIndent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf2b7e8beb
commit
7d2a2518e8
@ -67,4 +67,10 @@ static inline string ftostr(double V) {
|
||||
return Buffer;
|
||||
}
|
||||
|
||||
static inline void
|
||||
printIndent(unsigned int indent, ostream& os=cout, const char* const istr=" ")
|
||||
{
|
||||
for (unsigned i=0; i < indent; i++)
|
||||
os << istr;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user