| 254 | }; |
| 255 | |
| 256 | void CustomFunctionInjector::ThrowEvent(FunctionHandle handle, OsiArgumentDesc * args) const |
| 257 | { |
| 258 | auto it = divToOsiMappings_.find(handle); |
| 259 | if (it != divToOsiMappings_.end()) { |
| 260 | CustomEventGuard guard; |
| 261 | if (guard.CanThrowEvent()) { |
| 262 | auto osiris = gOsirisProxy->GetDynamicGlobals().OsirisObject; |
| 263 | gOsirisProxy->GetWrappers().Event.CallOriginal(osiris, it->second, args); |
| 264 | } else { |
| 265 | OsiError("Maximum Osiris event depth (" << gCustomEventDepth << ") exceeded"); |
| 266 | } |
| 267 | } else { |
| 268 | OsiError("Event handle not mapped: " << std::hex << (unsigned)handle); |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | void OsiFunctionToSymbolInfo(Function & func, OsiSymbolInfo & symbol) |
| 273 | { |
no test coverage detected