2014-09-13 10:07:23 -04:00
|
|
|
/**
|
2013-08-07 21:00:09 -04:00
|
|
|
* Copyright (c) 2013 Anna Schumaker.
|
2013-07-05 21:40:10 -04:00
|
|
|
*/
|
2014-06-21 09:37:47 -04:00
|
|
|
#ifndef OCARINA_CORE_PRINT_H
|
|
|
|
#define OCARINA_CORE_PRINT_H
|
2013-07-05 21:40:10 -04:00
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdarg>
|
|
|
|
|
2014-09-13 10:07:23 -04:00
|
|
|
/**
|
|
|
|
* Print a message to the console
|
|
|
|
*
|
|
|
|
* @param fmt Printf-style text format.
|
2014-11-01 20:23:46 -04:00
|
|
|
* @param ... Var-args matching the specified format.
|
2014-09-13 10:07:23 -04:00
|
|
|
*/
|
2013-07-05 21:40:10 -04:00
|
|
|
inline void print(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vprintf(fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
2014-06-21 09:37:47 -04:00
|
|
|
#endif /* OCARINA_CORE_PRINT_H */
|