Function destruct

Synopsis

#include <include/flecs/addons/cpp/mixins/rule/impl.hpp>

void destruct()

Description

Free the rule.

Source

Lines 44-48 in include/flecs/addons/cpp/mixins/rule/impl.hpp.

void destruct() {
    ecs_rule_fini(m_rule);
    m_world = nullptr;
    m_rule = nullptr;
}