void mcMapParser::ReportError(const char* message, ...) { csPrintf("Error in line %d: ", m_current_line); va_list args; va_start (args, message); csPrintfV (message, args); va_end (args); csPrintf("\n"); }
void csGraphics2D::AlertV (int type, const char* title, const char* okMsg, const char* msg, va_list arg) { (void)type; (void)title; (void)okMsg; csPrintf ("ALERT: "); csPrintfV (msg, arg); csPrintf ("\n"); fflush (stdout); }
void csWrappedDocumentNodeFactory::DebugProcessing (const char* format, ...) { if (!plugin->debugInstrProcessing) return; va_list args; va_start (args, format); csPrintfV (format, args); va_end (args); }
void csTranslatorLoaderXml::Report (int severity, const char* msg, ...) { va_list arg; va_start (arg, msg); csRef<iReporter> rep = csQueryRegistry<iReporter> (object_reg); if (rep) rep->ReportV (severity, "crystalspace.translation.loader.xml", msg, arg); else { csPrintfV (msg, arg); csPrintf ("\n"); } va_end (arg); }
void csMovieRecorder::Report (int severity, const char* msg, ...) { va_list arg; va_start (arg, msg); csRef<iReporter> rep (csQueryRegistry<iReporter> (object_reg)); if (rep) rep->ReportV (severity, "crystalspace.movierecorder", msg, arg); else { csPrintfV (msg, arg); csPrintf ("\n"); } va_end (arg); }
void csGraphics2DOpenGL::Report (int severity, const char* msg, ...) { va_list arg; va_start (arg, msg); csRef<iReporter> rep (csQueryRegistry<iReporter> (object_reg)); if (rep) rep->ReportV (severity, "crystalspace.canvas.openglwin", msg, arg); else { csPrintfV (msg, arg); csPrintf ("\n"); } va_end (arg); }
void DebuggerManager::Report (int severity, const char* msg, ...) { va_list arg; va_start (arg, msg); csRef<iReporter> rep (csQueryRegistry<iReporter> (object_reg)); if (rep) rep->ReportV (severity, "crystalspace.dynamics.debug", msg, arg); else { csPrintfV (msg, arg); csPrintf ("\n"); } va_end (arg); }
/// report something void Report (iObjectRegistry *object_reg, int severity, const char* msg, ...) { va_list arg; va_start (arg, msg); csRef<iReporter> rep = csQueryRegistry<iReporter> (object_reg); if (rep) rep->ReportV (severity, "crystalspace.graphic.image.io.jng", msg, arg); else { csPrintf ("crystalspace.graphic.image.io.jng: "); csPrintfV (msg, arg); csPrintf ("\n"); } va_end (arg); }
void RagdollManager::Report (int severity, const char* msg, ...) const { va_list arg; va_start (arg, msg); csRef<iReporter> rep (csQueryRegistry<iReporter> (object_reg)); if (rep) rep->ReportV (severity, "crystalspace.mesh.animesh.controllers.ragdoll", msg, arg); else { csPrintfV (msg, arg); csPrintf ("\n"); } va_end (arg); }