StdCompiler.cpp File Reference
#include "C4Include.h"
#include "lib/StdCompiler.h"
Include dependency graph for StdCompiler.cpp:

Go to the source code of this file.


void StdCompilerWarnCallback (void *pData, const char *szPosition, const char *szError)

Function Documentation

◆ StdCompilerWarnCallback()

void StdCompilerWarnCallback ( void *  pData,
const char *  szPosition,
const char *  szError 

Definition at line 1036 of file StdCompiler.cpp.

References DebugLogF().

Referenced by CompileFromBuf_LogWarn(), and StdCompilerINIRead::TestStringEnd().

1037 {
1038  const char *szName = reinterpret_cast<const char *>(pData);
1039  if (!szPosition || !*szPosition)
1040  DebugLogF("WARNING: %s (in %s)", szError, szName);
1041  else
1042  DebugLogF("WARNING: %s (in %s, %s)", szError, szPosition, szName);
1043 }
bool DebugLogF(const char *strMessage ...)
Definition: C4Log.cpp:288
Here is the call graph for this function:
Here is the caller graph for this function: