Files
mlpack/fastlib/branches/fastlib-old/base/otrav.cc
T
Ryan Curtin f6864dd435 Move fastlib-old (originally 'fastlib') to fastlib/branches/fastlib-old where it
will sit until the end of time and nobody will touch it because it's old
2010-01-31 22:31:55 +00:00

28 lines
523 B
C++

/**
* @file otrav.cc
*
* Non-templated implementations of object-traversal.
*
* Very little is defined here since pretty much every part of OT is
* templated.
*/
#include "otrav.h"
#include <stdarg.h>
void ot__private::ZOTPrinter::ShowIndents() {
for (int i = 0; i < indent_amount_; i++) {
putc(' ', stream_);
}
}
void ot__private::ZOTPrinter::Write(const char *format, ...) {
va_list vl;
ShowIndents();
va_start(vl, format);
vfprintf(stream_, format, vl);
va_end(vl);
putc('\n', stream_);
}