| 34 | } |
| 35 | |
| 36 | void LuaBaseComponent::addCallbacks(String groupName, LuaCallbacks callbacks) { |
| 37 | if (!m_callbacks.insert(groupName, callbacks).second) |
| 38 | throw LuaComponentException::format("Duplicate callbacks named '{}' in LuaBaseComponent", groupName); |
| 39 | |
| 40 | if (m_context) |
| 41 | m_context->setCallbacks(groupName, callbacks); |
| 42 | } |
| 43 | |
| 44 | bool LuaBaseComponent::removeCallbacks(String const& groupName) { |
| 45 | if (m_callbacks.remove(groupName)) { |
nothing calls this directly
no test coverage detected