MCPcopy Create free account
hub / github.com/baldurk/renderdoc / RENDERDOC_LogMessage

Function RENDERDOC_LogMessage

renderdoc/replay/entry_points.cpp:266–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_LogMessage(LogType type, const rdcstr &project,
267 const rdcstr &file,
268 unsigned int line, const rdcstr &text)
269{
270 rdclog_direct(FILL_AUTO_VALUE, FILL_AUTO_VALUE, type, project.c_str(), file.c_str(), line, "%s",
271 text.c_str());
272
273 // see comment in common.h
274 RDCCOMPILE_ASSERT((uint32_t)LogType::Debug == (uint32_t)LogType__Internal::Debug,
275 "External and internal LogType enums must match");
276 RDCCOMPILE_ASSERT((uint32_t)LogType::Comment == (uint32_t)LogType__Internal::Comment,
277 "External and internal LogType enums must match");
278 RDCCOMPILE_ASSERT((uint32_t)LogType::Warning == (uint32_t)LogType__Internal::Warning,
279 "External and internal LogType enums must match");
280 RDCCOMPILE_ASSERT((uint32_t)LogType::Error == (uint32_t)LogType__Internal::Error,
281 "External and internal LogType enums must match");
282 RDCCOMPILE_ASSERT((uint32_t)LogType::Fatal == (uint32_t)LogType__Internal::Fatal,
283 "External and internal LogType enums must match");
284 RDCCOMPILE_ASSERT((uint32_t)LogType::Count == (uint32_t)LogType__Internal::Count,
285 "External and internal LogType enums must match");
286 RDCCOMPILE_ASSERT(arraydim<LogType>() == 5, "External and internal LogType enums must match");
287
288#if ENABLED(DEBUGBREAK_ON_ERROR_LOG)
289 if(type == LogType::Error)
290 RDCBREAK();
291#endif
292
293 if(type == LogType::Fatal)
294 RDCDUMP();
295}
296
297extern "C" RENDERDOC_API const char *RENDERDOC_CC RENDERDOC_GetLogFile()
298{

Callers 6

finishMethod · 0.85
syncMethod · 0.85
sharedLogOutputFunction · 0.85
HandleCallbackFailureFunction · 0.85
outstream_writeMethod · 0.85
HandleExceptionFunction · 0.85

Calls 2

rdclog_directFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected