Skip to content

Commit

Permalink
Merge pull request #444 from chukong/fix_scripts_of_ccs_binding
Browse files Browse the repository at this point in the history
fixed bug in base_ccs.lua
  • Loading branch information
SunLightJuly committed Sep 18, 2014
2 parents 6f7a0aa + 744dd2f commit 13776ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/luabinding/basic_ccs.lua
Original file line number Diff line number Diff line change
@@ -153,6 +153,8 @@ using namespace CocosDenshion;]])
replace([[/* Exported function */
TOLUA_API int tolua_CocoStudio_open (lua_State* tolua_S);]], [[]])

replace([[*((LUA_FUNCTION*)]], [[(]])

replace([[(tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCTextAlignment",0,&tolua_err))]],[[!tolua_isnumber(tolua_S,2,0,&tolua_err)]])

replace([[CCTextAlignment alignment = *((CCTextAlignment*) tolua_tousertype(tolua_S,2,0));]],[[CCTextAlignment alignment = ((CCTextAlignment) (int) tolua_tonumber(tolua_S,2,0));]])

0 comments on commit 13776ff

Please sign in to comment.