ocarina/libsaria/print.cpp
Bryan Schumaker 1933689d4f Added copyright lines to everything
I probably should have done this earlier... oh well

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-19 17:17:24 -05:00

29 lines
369 B
C++

// Copyright (c) 2011 Bryan Schumaker.
#ifdef DEBUG
#include <cstdio>
#include <cstdarg>
#include <libsaria/print.h>
void print(string fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vprintf(fmt.c_str(), ap);
va_end(ap);
}
void println(string fmt, ...)
{
va_list ap;
fmt += "\n";
va_start(ap, fmt);
vprintf(fmt.c_str(), ap);
va_end(ap);
}
#endif /* DEBUG */