diff options
Diffstat (limited to 'tool_src/QvLib/QvDebugError.cpp')
| -rw-r--r-- | tool_src/QvLib/QvDebugError.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tool_src/QvLib/QvDebugError.cpp b/tool_src/QvLib/QvDebugError.cpp new file mode 100644 index 0000000..c8cbd03 --- /dev/null +++ b/tool_src/QvLib/QvDebugError.cpp @@ -0,0 +1,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); +} |
