| 264 | } |
| 265 | |
| 266 | extern "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 | |
| 297 | extern "C" RENDERDOC_API const char *RENDERDOC_CC RENDERDOC_GetLogFile() |
| 298 | { |
no test coverage detected