diff options
Diffstat (limited to 'tool_src/QvLib/QvReadError.cpp')
| -rw-r--r-- | tool_src/QvLib/QvReadError.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tool_src/QvLib/QvReadError.cpp b/tool_src/QvLib/QvReadError.cpp new file mode 100644 index 0000000..313525f --- /dev/null +++ b/tool_src/QvLib/QvReadError.cpp @@ -0,0 +1,19 @@ +#include <stdarg.h> +#include <QvString.h> +#include <QvInput.h> +#include <QvReadError.h> + +void +QvReadError::post(const QvInput *in, const char *formatString ...) +{ + char buf[10000]; + va_list ap; + + va_start(ap, formatString); + vsprintf(buf, formatString, ap); + va_end(ap); + + QvString locstr; + in->getLocationString(locstr); + fprintf(stderr, "VRML read error: %s\n%s\n", buf, locstr.getString()); +} |
