We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Refactor LuaBridge::pushLuaFunctionById
Refactor LuaBridge::pushLuaFunctionById
Refactor #2902 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8230
Status: | Closed | |
---|---|---|
Start date: | 2013-10-08 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | lua | |
Target version: | - |
DELETE THIS CODE:
@ lua_pushnil(L); /* L: f_id nil /
while != 0) / L: f_id f id /
{
int value = lua_tonumber;
lua_pop; / L: f_id f */
if (value == functionId)
{
return
1;1;}
} /* L: f_id /
@
WRITE TO:
@
lua_pushinteger; / L: f_id functionId /
lua_gettable; / L: f_id f */
if )
{
return
}
@