void RenderingDebugger::PostWarning(const WarningType type, const std::string& message) { auto it = warnings_.find(message); if (it != warnings_.end()) { if (!it->second.IsBlocked()) { it->second.IncOccurrence(); OnWarning(type, it->second); } } else { warnings_[message] = Message{ message, source_, groupName_ }; OnWarning(type, warnings_[message]); } }
void cxEngine::Warning() { OnWarning(); }