aboutsummaryrefslogtreecommitdiff
path: root/tool_src/QvLib/QvDebugError.cpp
blob: c8cbd03e0453f809a6f03f77f699bb049b8c4279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdarg.h>
#include <QvString.h>
#include <QvDebugError.h>

void
QvDebugError::post(const char *methodName, const char *formatString ...)
{
    char	buf[10000];
    va_list	ap;

    va_start(ap, formatString);
    vsprintf(buf, formatString, ap);
    va_end(ap);

    fprintf(stderr, "VRML error in %s(): %s\n", methodName, buf);
}