Logo Search packages:      
Sourcecode: sbnc version File versions  Download package

void CCore::InternalLogError ( const char *  Format,
  ... 
)

InternalLogError

Logs an internal error.

Parameters:
Format format string
... additional parameters which are used in the format string

Definition at line 1007 of file Core.cpp.

References m_Log, and CLog::WriteUnformattedLine().

                                                    {
      char Format2[512];
      char *Out;
      const char *P = g_ErrorFile;
      va_list marker;

      while (*P++) {
            if (*P == '\\') {
                  g_ErrorFile = P + 1;
            }
      }

      snprintf(Format2, sizeof(Format2), "Error (in %s:%d): %s", g_ErrorFile, g_ErrorLine, Format);

      va_start(marker, Format);
      vasprintf(&Out, Format2, marker);
      va_end(marker);

      CHECK_ALLOC_RESULT(Out, vasnprintf) {
            return;
      } CHECK_ALLOC_RESULT_END;

      m_Log->WriteUnformattedLine(NULL, Out);

      free(Out);
}


Generated by  Doxygen 1.6.0   Back to index