| 20 | |
| 21 | template <typename TT> |
| 22 | void for_each_debug_agent ( const TT & lmbd ) { |
| 23 | if ( g_envTotal > 0 && *daScriptEnvironment::g_threadLocalDebugAgent && (*daScriptEnvironment::g_threadLocalDebugAgent)->debugAgent ) { |
| 24 | lmbd ( (*daScriptEnvironment::g_threadLocalDebugAgent)->debugAgent ); |
| 25 | } |
| 26 | std::lock_guard<std::recursive_mutex> guard(g_DebugAgentMutex); |
| 27 | for ( auto & it : g_DebugAgents ) { |
| 28 | if ( !it.second.debugAgent ) continue; |
| 29 | lmbd ( it.second.debugAgent ); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | void dapiReportContextState ( Context & ctx, const char * category, const char * name, const TypeInfo * info, void * data ) { |
| 34 | for_each_debug_agent([&](const DebugAgentPtr & pAgent){ |
no outgoing calls
no test coverage detected