From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- tool_src/QvLib/QvDebugError.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tool_src/QvLib/QvDebugError.cpp (limited to 'tool_src/QvLib/QvDebugError.cpp') 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 +#include +#include + +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); +} -- cgit v1.2.3