Projects > cpp > Issues > Refactor #2902

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Refactor LuaBridge::pushLuaFunctionById

Refactor #2902 [Closed]
shrimps 2013-10-08 08:35 . Updated about 2 years ago

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;
}
} /* L: f_id /
@
WRITE TO:
@
lua_pushinteger; /
L: f_id functionId /
lua_gettable; /
L: f_id f */
if )
{
return
1;
}
@

walzer@cocos2d-x.org 2014-10-08 02:55

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

Atom PDF

Status:Closed
Start date:2013-10-08
Priority:Normal
Due date:
Assignee:-
% Done:

0%

Category:lua
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.