| 241 | unsigned gCustomEventDepth{ 0 }; |
| 242 | |
| 243 | struct CustomEventGuard |
| 244 | { |
| 245 | static constexpr unsigned MaxDepth = 10; |
| 246 | |
| 247 | CustomEventGuard() { gCustomEventDepth++; } |
| 248 | ~CustomEventGuard() { gCustomEventDepth--; } |
| 249 | |
| 250 | bool CanThrowEvent() const |
| 251 | { |
| 252 | return gCustomEventDepth < MaxDepth; |
| 253 | } |
| 254 | }; |
| 255 | |
| 256 | void CustomFunctionInjector::ThrowEvent(FunctionHandle handle, OsiArgumentDesc * args) const |
| 257 | { |
nothing calls this directly
no outgoing calls
no test coverage detected