Fix the lua-tests compile error in the release condition

This commit is contained in:
samuele3hu 2014-10-17 14:16:17 +08:00 committed by honghui
parent ca50bd3834
commit 9bf85f5948
1 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
{ {
lua_pushnumber(L, i + 1); lua_pushnumber(L, i + 1);
lua_gettable(L, 2); lua_gettable(L, 2);
#ifndef TOLUA_RELEASE #if COCOS2D_DEBUG >= 1
if (!tolua_istable(L, -1, 0, &tolua_err)) if (!tolua_istable(L, -1, 0, &tolua_err))
{ {
lua_pop(L, 1); lua_pop(L, 1);
@ -530,7 +530,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
#endif #endif
ok &= luaval_to_vec3(L, lua_gettop(L), &vec3); ok &= luaval_to_vec3(L, lua_gettop(L), &vec3);
#ifndef TOLUA_RELEASE #if COCOS2D_DEBUG >= 1
if (!ok) if (!ok)
{ {
lua_pop(L, 1); lua_pop(L, 1);