MCPcopy Create free account
hub / github.com/axmolengine/axmol / executeEvent

Method executeEvent

extensions/scripting/lua-bindings/manual/LuaEngine.cpp:149–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149int 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
164bool LuaEngine::handleAssert(const char* msg)
165{

Callers

nothing calls this directly

Calls 4

pushStringMethod · 0.80
pushObjectMethod · 0.80
cleanMethod · 0.45

Tested by

no test coverage detected