| 54 | } |
| 55 | inline T_func *next() { return hook->next(func); } |
| 56 | void apply (bool enable) |
| 57 | { |
| 58 | if (enable) |
| 59 | hook->add(func); |
| 60 | else |
| 61 | hook->remove(func); |
| 62 | enabled = enable; |
| 63 | } |
| 64 | inline void enable() { apply(true); } |
| 65 | inline void disable() { apply(false); } |
| 66 | inline bool is_enabled() { return enabled; } |
no test coverage detected