ocarina/include/core/print.h
Anna Schumaker 23cc27c3ef print: Remove dprint()
dprint() has no users, so it can be removed.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-11-01 20:25:56 -04:00

27 lines
440 B
C

/**
* @file
* Copyright (c) 2013 Anna Schumaker.
*/
#ifndef OCARINA_CORE_PRINT_H
#define OCARINA_CORE_PRINT_H
#include <cstdio>
#include <cstdarg>
/**
* Print a message to the console
*
* @param fmt Printf-style text format.
* @param ... Var-args matching the specified format.
*/
inline void print(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vprintf(fmt, ap);
va_end(ap);
}
#endif /* OCARINA_CORE_PRINT_H */