| 147 | } |
| 148 | |
| 149 | int LuaEngine::executeEvent(int nHandler, |
| 150 | const char* pEventName, |
| 151 | Object* pEventSource /* = NULL*/, |
| 152 | const char* pEventSourceClassName /* = NULL*/) |
| 153 | { |
| 154 | _stack->pushString(pEventName); |
| 155 | if (pEventSource) |
| 156 | { |
| 157 | _stack->pushObject(pEventSource, pEventSourceClassName ? pEventSourceClassName : "ax.Object"); |
| 158 | } |
| 159 | int ret = _stack->executeFunctionByHandler(nHandler, pEventSource ? 2 : 1); |
| 160 | _stack->clean(); |
| 161 | return ret; |
| 162 | } |
| 163 | |
| 164 | bool LuaEngine::handleAssert(const char* msg) |
| 165 | { |
nothing calls this directly
no test coverage detected