EventHandler: Support unsetting generate_always

This commit is contained in:
Arne Welzel 2023-02-04 12:15:10 +01:00
parent e4ab7b2d70
commit b66cd313db

View file

@ -49,7 +49,10 @@ public:
// Flags the event as interesting even if there is no body defined. In
// particular, this will then still pass the event on to plugins.
void SetGenerateAlways() { generate_always = true; }
void SetGenerateAlways(bool arg_generate_always = true)
{
generate_always = arg_generate_always;
}
bool GenerateAlways() const { return generate_always; }
uint64_t CallCount() const { return call_count; }