mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7562 from samuele3hu/v3_conversion
Show detail class & function name on conversion error and update bindings-generator submodule
This commit is contained in:
commit
769267020d
|
@ -31,7 +31,7 @@ std::unordered_map<std::string, std::string> g_luaType;
|
|||
std::unordered_map<std::string, std::string> g_typeCast;
|
||||
|
||||
#if COCOS2D_DEBUG >=1
|
||||
void luaval_to_native_err(lua_State* L,const char* msg,tolua_Error* err)
|
||||
void luaval_to_native_err(lua_State* L,const char* msg,tolua_Error* err, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == err || NULL == msg || 0 == strlen(msg))
|
||||
return;
|
||||
|
@ -44,16 +44,16 @@ void luaval_to_native_err(lua_State* L,const char* msg,tolua_Error* err)
|
|||
{
|
||||
int narg = err->index;
|
||||
if (err->array)
|
||||
CCLOG("%s\n argument #%d is array of '%s'; array of '%s' expected.\n",msg+2,narg,provided,expected);
|
||||
CCLOG("%s\n %s argument #%d is array of '%s'; array of '%s' expected.\n",msg+2,funcName,narg,provided,expected);
|
||||
else
|
||||
CCLOG("%s\n argument #%d is '%s'; '%s' expected.\n",msg+2,narg,provided,expected);
|
||||
CCLOG("%s\n %s argument #%d is '%s'; '%s' expected.\n",msg+2,funcName,narg,provided,expected);
|
||||
}
|
||||
else if (msg[1]=='v')
|
||||
{
|
||||
if (err->array)
|
||||
CCLOG("%s\n value is array of '%s'; array of '%s' expected.\n",msg+2,provided,expected);
|
||||
CCLOG("%s\n %s value is array of '%s'; array of '%s' expected.\n",funcName,msg+2,provided,expected);
|
||||
else
|
||||
CCLOG("%s\n value is '%s'; '%s' expected.\n",msg+2,provided,expected);
|
||||
CCLOG("%s\n %s value is '%s'; '%s' expected.\n",msg+2,funcName,provided,expected);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ bool luaval_is_usertype(lua_State* L,int lo,const char* type, int def)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue)
|
||||
bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -89,7 +89,7 @@ bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue)
|
|||
}
|
||||
|
||||
|
||||
bool luaval_to_int32(lua_State* L,int lo,int* outValue)
|
||||
bool luaval_to_int32(lua_State* L,int lo,int* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -114,7 +114,7 @@ bool luaval_to_int32(lua_State* L,int lo,int* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ bool luaval_to_int32(lua_State* L,int lo,int* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue)
|
||||
bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -138,7 +138,7 @@ bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_uint16(lua_State* L,int lo,uint16_t* outValue)
|
||||
bool luaval_to_uint16(lua_State* L,int lo,uint16_t* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -162,7 +162,7 @@ bool luaval_to_uint16(lua_State* L,int lo,uint16_t* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ bool luaval_to_uint16(lua_State* L,int lo,uint16_t* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_boolean(lua_State* L,int lo,bool* outValue)
|
||||
bool luaval_to_boolean(lua_State* L,int lo,bool* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -186,7 +186,7 @@ bool luaval_to_boolean(lua_State* L,int lo,bool* outValue)
|
|||
if (!tolua_isboolean(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ bool luaval_to_boolean(lua_State* L,int lo,bool* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_number(lua_State* L,int lo,double* outValue)
|
||||
bool luaval_to_number(lua_State* L,int lo,double* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -210,7 +210,7 @@ bool luaval_to_number(lua_State* L,int lo,double* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ bool luaval_to_number(lua_State* L,int lo,double* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_long_long(lua_State* L,int lo,long long* outValue)
|
||||
bool luaval_to_long_long(lua_State* L,int lo,long long* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -234,7 +234,7 @@ bool luaval_to_long_long(lua_State* L,int lo,long long* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ bool luaval_to_long_long(lua_State* L,int lo,long long* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue)
|
||||
bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -258,7 +258,7 @@ bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue)
|
|||
if (!tolua_iscppstring(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_vec2(lua_State* L,int lo,cocos2d::Vec2* outValue)
|
||||
bool luaval_to_vec2(lua_State* L,int lo,cocos2d::Vec2* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -282,7 +282,7 @@ bool luaval_to_vec2(lua_State* L,int lo,cocos2d::Vec2* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ bool luaval_to_vec2(lua_State* L,int lo,cocos2d::Vec2* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_vec3(lua_State* L,int lo,cocos2d::Vec3* outValue)
|
||||
bool luaval_to_vec3(lua_State* L,int lo,cocos2d::Vec3* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -314,7 +314,7 @@ bool luaval_to_vec3(lua_State* L,int lo,cocos2d::Vec3* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -340,7 +340,7 @@ bool luaval_to_vec3(lua_State* L,int lo,cocos2d::Vec3* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_vec4(lua_State* L,int lo,cocos2d::Vec4* outValue)
|
||||
bool luaval_to_vec4(lua_State* L,int lo,cocos2d::Vec4* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -351,7 +351,7 @@ bool luaval_to_vec4(lua_State* L,int lo,cocos2d::Vec4* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -382,7 +382,7 @@ bool luaval_to_vec4(lua_State* L,int lo,cocos2d::Vec4* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue)
|
||||
bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -393,7 +393,7 @@ bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -414,7 +414,7 @@ bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_physics_material(lua_State* L,int lo,PhysicsMaterial* outValue)
|
||||
bool luaval_to_physics_material(lua_State* L,int lo,PhysicsMaterial* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -425,7 +425,7 @@ bool luaval_to_physics_material(lua_State* L,int lo,PhysicsMaterial* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -451,12 +451,12 @@ bool luaval_to_physics_material(lua_State* L,int lo,PhysicsMaterial* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_ssize(lua_State* L,int lo, ssize_t* outValue)
|
||||
bool luaval_to_ssize(lua_State* L,int lo, ssize_t* outValue, const char* funcName)
|
||||
{
|
||||
return luaval_to_long(L, lo, reinterpret_cast<long*>(outValue));
|
||||
}
|
||||
|
||||
bool luaval_to_long(lua_State* L,int lo, long* outValue)
|
||||
bool luaval_to_long(lua_State* L,int lo, long* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -467,7 +467,7 @@ bool luaval_to_long(lua_State* L,int lo, long* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -480,7 +480,7 @@ bool luaval_to_long(lua_State* L,int lo, long* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_ulong(lua_State* L,int lo, unsigned long* outValue)
|
||||
bool luaval_to_ulong(lua_State* L,int lo, unsigned long* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -491,7 +491,7 @@ bool luaval_to_ulong(lua_State* L,int lo, unsigned long* outValue)
|
|||
if (!tolua_isnumber(L,lo,0,&tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -504,7 +504,7 @@ bool luaval_to_ulong(lua_State* L,int lo, unsigned long* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_size(lua_State* L,int lo,Size* outValue)
|
||||
bool luaval_to_size(lua_State* L,int lo,Size* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -515,7 +515,7 @@ bool luaval_to_size(lua_State* L,int lo,Size* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -536,7 +536,7 @@ bool luaval_to_size(lua_State* L,int lo,Size* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_rect(lua_State* L,int lo,Rect* outValue)
|
||||
bool luaval_to_rect(lua_State* L,int lo,Rect* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -547,7 +547,7 @@ bool luaval_to_rect(lua_State* L,int lo,Rect* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -578,7 +578,7 @@ bool luaval_to_rect(lua_State* L,int lo,Rect* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue)
|
||||
bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -589,7 +589,7 @@ bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -620,7 +620,7 @@ bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_color4f(lua_State* L,int lo,Color4F* outValue)
|
||||
bool luaval_to_color4f(lua_State* L,int lo,Color4F* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -631,7 +631,7 @@ bool luaval_to_color4f(lua_State* L,int lo,Color4F* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -662,7 +662,7 @@ bool luaval_to_color4f(lua_State* L,int lo,Color4F* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_color3b(lua_State* L,int lo,Color3B* outValue)
|
||||
bool luaval_to_color3b(lua_State* L,int lo,Color3B* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -673,7 +673,7 @@ bool luaval_to_color3b(lua_State* L,int lo,Color3B* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -699,7 +699,7 @@ bool luaval_to_color3b(lua_State* L,int lo,Color3B* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_affinetransform(lua_State* L,int lo, AffineTransform* outValue)
|
||||
bool luaval_to_affinetransform(lua_State* L,int lo, AffineTransform* outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -710,7 +710,7 @@ bool luaval_to_affinetransform(lua_State* L,int lo, AffineTransform* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -750,7 +750,7 @@ bool luaval_to_affinetransform(lua_State* L,int lo, AffineTransform* outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue )
|
||||
bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue , const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -761,7 +761,7 @@ bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue )
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
ok = false;
|
||||
#endif
|
||||
}
|
||||
|
@ -891,7 +891,7 @@ bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue )
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_ttfconfig(lua_State* L,int lo, cocos2d::TTFConfig* outValue)
|
||||
bool luaval_to_ttfconfig(lua_State* L,int lo, cocos2d::TTFConfig* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -902,7 +902,7 @@ bool luaval_to_ttfconfig(lua_State* L,int lo, cocos2d::TTFConfig* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -946,7 +946,7 @@ bool luaval_to_ttfconfig(lua_State* L,int lo, cocos2d::TTFConfig* outValue)
|
|||
}
|
||||
|
||||
|
||||
bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue)
|
||||
bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -957,7 +957,7 @@ bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -990,7 +990,7 @@ bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValue)
|
||||
bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValue, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -1001,7 +1001,7 @@ bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValu
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1034,7 +1034,7 @@ bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValu
|
|||
return false;
|
||||
}
|
||||
|
||||
bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue )
|
||||
bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue , const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == outValue)
|
||||
return false;
|
||||
|
@ -1045,7 +1045,7 @@ bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue )
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
ok = false;
|
||||
#endif
|
||||
}
|
||||
|
@ -1072,7 +1072,7 @@ bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue )
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_array(lua_State* L,int lo, __Array** outValue)
|
||||
bool luaval_to_array(lua_State* L,int lo, __Array** outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -1083,7 +1083,7 @@ bool luaval_to_array(lua_State* L,int lo, __Array** outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1172,7 +1172,7 @@ bool luaval_to_array(lua_State* L,int lo, __Array** outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_dictionary(lua_State* L,int lo, __Dictionary** outValue)
|
||||
bool luaval_to_dictionary(lua_State* L,int lo, __Dictionary** outValue, const char* funcName)
|
||||
{
|
||||
if (NULL == L || NULL == outValue)
|
||||
return false;
|
||||
|
@ -1183,7 +1183,7 @@ bool luaval_to_dictionary(lua_State* L,int lo, __Dictionary** outValue)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1276,7 +1276,7 @@ bool luaval_to_dictionary(lua_State* L,int lo, __Dictionary** outValue)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_array_of_vec2(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints)
|
||||
bool luaval_to_array_of_vec2(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints, const char* funcName)
|
||||
{
|
||||
if (NULL == L)
|
||||
return false;
|
||||
|
@ -1288,7 +1288,7 @@ bool luaval_to_array_of_vec2(lua_State* L,int lo,cocos2d::Vec2 **points, int *nu
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err) )
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1308,7 +1308,7 @@ bool luaval_to_array_of_vec2(lua_State* L,int lo,cocos2d::Vec2 **points, int *nu
|
|||
if (!tolua_istable(L,-1, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
lua_pop(L, 1);
|
||||
CC_SAFE_DELETE_ARRAY(array);
|
||||
|
@ -1436,7 +1436,7 @@ bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, cocos2d::ValueVec
|
|||
return true;
|
||||
}
|
||||
|
||||
bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret)
|
||||
bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret, const char* funcName)
|
||||
{
|
||||
if ( nullptr == L || nullptr == ret)
|
||||
return false;
|
||||
|
@ -1492,7 +1492,7 @@ bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret)
|
|||
|
||||
return ok;
|
||||
}
|
||||
bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret)
|
||||
bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret, const char* funcName)
|
||||
{
|
||||
if ( nullptr == L || nullptr == ret)
|
||||
return false;
|
||||
|
@ -1502,7 +1502,7 @@ bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1579,7 +1579,7 @@ bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret)
|
|||
|
||||
return ok;
|
||||
}
|
||||
bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* ret)
|
||||
bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret)
|
||||
return false;
|
||||
|
@ -1589,7 +1589,7 @@ bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* r
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1667,7 +1667,7 @@ bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* r
|
|||
|
||||
return ok;
|
||||
}
|
||||
bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret)
|
||||
bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret)
|
||||
return false;
|
||||
|
@ -1677,7 +1677,7 @@ bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1749,7 +1749,7 @@ bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>* ret)
|
||||
bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret || lua_gettop(L) < lo)
|
||||
return false;
|
||||
|
@ -1759,7 +1759,7 @@ bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>*
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1790,7 +1790,7 @@ bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>*
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret)
|
||||
bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret || lua_gettop(L) < lo)
|
||||
return false;
|
||||
|
@ -1800,7 +1800,7 @@ bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1828,7 +1828,7 @@ bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttrib* ret)
|
||||
bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttrib* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret || lua_gettop(L) < lo)
|
||||
return false;
|
||||
|
@ -1839,7 +1839,7 @@ bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttri
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1872,7 +1872,7 @@ bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttri
|
|||
|
||||
}
|
||||
|
||||
bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret)
|
||||
bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret || lua_gettop(L) < lo)
|
||||
return false;
|
||||
|
@ -1883,7 +1883,7 @@ bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret)
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
@ -1912,7 +1912,7 @@ bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret)
|
|||
}
|
||||
|
||||
|
||||
bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector<unsigned short>* ret)
|
||||
bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector<unsigned short>* ret, const char* funcName)
|
||||
{
|
||||
if (nullptr == L || nullptr == ret || lua_gettop(L) < lo)
|
||||
return false;
|
||||
|
@ -1923,7 +1923,7 @@ bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector<unsigned shor
|
|||
if (!tolua_istable(L, lo, 0, &tolua_err))
|
||||
{
|
||||
#if COCOS2D_DEBUG >=1
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err);
|
||||
luaval_to_native_err(L,"#ferror:",&tolua_err,funcName);
|
||||
#endif
|
||||
ok = false;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ extern std::unordered_map<std::string, std::string> g_luaType;
|
|||
extern std::unordered_map<std::string, std::string> g_typeCast;
|
||||
|
||||
#if COCOS2D_DEBUG >=1
|
||||
void luaval_to_native_err(lua_State* L,const char* msg,tolua_Error* err);
|
||||
void luaval_to_native_err(lua_State* L,const char* msg,tolua_Error* err, const char* funcName = "");
|
||||
#endif
|
||||
|
||||
#define LUA_PRECONDITION( condition, ...) if( ! (condition) ) { \
|
||||
|
@ -47,48 +47,48 @@ cocos2d::log(__VA_ARGS__); \
|
|||
|
||||
extern bool luaval_is_usertype(lua_State* L,int lo,const char* type, int def);
|
||||
// to native
|
||||
extern bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue);
|
||||
extern bool luaval_to_int32(lua_State* L,int lo,int* outValue);
|
||||
extern bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue);
|
||||
extern bool luaval_to_uint16(lua_State* L,int lo,uint16_t* outValue);
|
||||
extern bool luaval_to_boolean(lua_State* L,int lo,bool* outValue);
|
||||
extern bool luaval_to_number(lua_State* L,int lo,double* outValue);
|
||||
extern bool luaval_to_long_long(lua_State* L,int lo,long long* outValue);
|
||||
extern bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue);
|
||||
extern bool luaval_to_long(lua_State* L,int lo, long* outValue);
|
||||
extern bool luaval_to_ssize(lua_State* L,int lo, ssize_t* outValue);
|
||||
extern bool luaval_to_size(lua_State* L,int lo,Size* outValue);
|
||||
extern bool luaval_to_rect(lua_State* L,int lo,Rect* outValue);
|
||||
extern bool luaval_to_color3b(lua_State* L,int lo,Color3B* outValue);
|
||||
extern bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue);
|
||||
extern bool luaval_to_color4f(lua_State* L,int lo,Color4F* outValue);
|
||||
extern bool luaval_to_physics_material(lua_State* L,int lo, cocos2d::PhysicsMaterial* outValue);
|
||||
extern bool luaval_to_affinetransform(lua_State* L,int lo, AffineTransform* outValue);
|
||||
extern bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue );
|
||||
extern bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue );
|
||||
extern bool luaval_to_array(lua_State* L,int lo, __Array** outValue);
|
||||
extern bool luaval_to_dictionary(lua_State* L,int lo, __Dictionary** outValue);
|
||||
extern bool luaval_to_array_of_vec2(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints);
|
||||
extern bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_int32(lua_State* L,int lo,int* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_uint16(lua_State* L,int lo,uint16_t* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_boolean(lua_State* L,int lo,bool* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_number(lua_State* L,int lo,double* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_long_long(lua_State* L,int lo,long long* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_long(lua_State* L,int lo, long* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_ssize(lua_State* L,int lo, ssize_t* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_size(lua_State* L,int lo,Size* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_rect(lua_State* L,int lo,Rect* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_color3b(lua_State* L,int lo,Color3B* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_color4b(lua_State* L,int lo,Color4B* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_color4f(lua_State* L,int lo,Color4F* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_physics_material(lua_State* L,int lo, cocos2d::PhysicsMaterial* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_affinetransform(lua_State* L,int lo, AffineTransform* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue , const char* funcName = "");
|
||||
extern bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue , const char* funcName = "");
|
||||
extern bool luaval_to_array(lua_State* L,int lo, __Array** outValue, const char* funcName = "");
|
||||
extern bool luaval_to_dictionary(lua_State* L,int lo, __Dictionary** outValue, const char* funcName = "");
|
||||
extern bool luaval_to_array_of_vec2(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints, const char* funcName = "");
|
||||
extern bool luavals_variadic_to_array(lua_State* L,int argc, __Array** ret);
|
||||
extern bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, cocos2d::ValueVector* ret);
|
||||
extern bool luaval_to_vec2(lua_State* L,int lo,cocos2d::Vec2* outValue);
|
||||
extern bool luaval_to_vec3(lua_State* L,int lo,cocos2d::Vec3* outValue);
|
||||
extern bool luaval_to_vec4(lua_State* L,int lo,cocos2d::Vec4* outValue);
|
||||
extern bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue);
|
||||
extern bool luaval_to_ttfconfig(lua_State* L, int lo, cocos2d::TTFConfig* outValue);
|
||||
extern bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue);
|
||||
extern bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValue);
|
||||
extern bool luaval_to_vec2(lua_State* L,int lo,cocos2d::Vec2* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_vec3(lua_State* L,int lo,cocos2d::Vec3* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_vec4(lua_State* L,int lo,cocos2d::Vec4* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_ttfconfig(lua_State* L, int lo, cocos2d::TTFConfig* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValue, const char* funcName = "");
|
||||
|
||||
static inline bool luaval_to_point(lua_State* L,int lo,cocos2d::Vec2* outValue)
|
||||
static inline bool luaval_to_point(lua_State* L,int lo,cocos2d::Vec2* outValue, const char* funcName = "")
|
||||
{
|
||||
return luaval_to_vec2(L, lo, outValue);
|
||||
}
|
||||
|
||||
CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_kmMat4(lua_State* L, int lo, cocos2d::Mat4* outValue )
|
||||
CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_kmMat4(lua_State* L, int lo, cocos2d::Mat4* outValue , const char* funcName = "")
|
||||
{
|
||||
return luaval_to_mat4(L, lo, outValue);
|
||||
}
|
||||
CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_array_of_Point(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints)
|
||||
CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_array_of_Point(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints, const char* funcName = "")
|
||||
{
|
||||
return luaval_to_array_of_vec2(L, lo, points, numPoints);
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ bool luavals_variadic_to_ccvector( lua_State* L, int argc, cocos2d::Vector<T>* r
|
|||
}
|
||||
|
||||
template <class T>
|
||||
bool luaval_to_ccvector(lua_State* L, int lo , cocos2d::Vector<T>* ret)
|
||||
bool luaval_to_ccvector(lua_State* L, int lo , cocos2d::Vector<T>* ret, const char* funcName = "")
|
||||
{
|
||||
if (nullptr == L || nullptr == ret)
|
||||
return false;
|
||||
|
@ -159,11 +159,11 @@ bool luaval_to_ccvector(lua_State* L, int lo , cocos2d::Vector<T>* ret)
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>* ret);
|
||||
bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret);
|
||||
bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>* ret, const char* funcName = "");
|
||||
bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret, const char* funcName = "");
|
||||
|
||||
template <class T>
|
||||
bool luaval_to_ccmap_string_key(lua_State* L, int lo, cocos2d::Map<std::string, T>* ret)
|
||||
bool luaval_to_ccmap_string_key(lua_State* L, int lo, cocos2d::Map<std::string, T>* ret, const char* funcName = "")
|
||||
{
|
||||
if(nullptr == L || nullptr == ret || lua_gettop(L) < lo)
|
||||
return false;
|
||||
|
@ -209,10 +209,10 @@ bool luaval_to_ccmap_string_key(lua_State* L, int lo, cocos2d::Map<std::string,
|
|||
}
|
||||
|
||||
|
||||
extern bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret);
|
||||
extern bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret);
|
||||
extern bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* ret);
|
||||
extern bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret);
|
||||
extern bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret, const char* funcName = "");
|
||||
extern bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret, const char* funcName = "");
|
||||
extern bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* ret, const char* funcName = "");
|
||||
extern bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret, const char* funcName = "");
|
||||
|
||||
template <class T>
|
||||
bool luaval_to_object(lua_State* L, int lo, const char* type, T** ret)
|
||||
|
@ -231,9 +231,9 @@ bool luaval_to_object(lua_State* L, int lo, const char* type, T** ret)
|
|||
return true;
|
||||
}
|
||||
|
||||
extern bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttrib* ret);
|
||||
extern bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret);
|
||||
extern bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector<unsigned short>* ret);
|
||||
extern bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttrib* ret, const char* funcName = "");
|
||||
extern bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret, const char* funcName = "");
|
||||
extern bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector<unsigned short>* ret, const char* funcName = "");
|
||||
|
||||
// from native
|
||||
extern void vec2_to_luaval(lua_State* L,const cocos2d::Vec2& vec2);
|
||||
|
|
|
@ -4429,7 +4429,7 @@ static int tolua_cocos2d_DrawPrimitives_drawPoint00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 vec2;
|
||||
if(luaval_to_vec2(tolua_S, 1, &vec2))
|
||||
if(luaval_to_vec2(tolua_S, 1, &vec2, "cc.DrawPrimitives.drawPoint"))
|
||||
{
|
||||
DrawPrimitives::drawPoint(vec2);
|
||||
}
|
||||
|
@ -4476,7 +4476,7 @@ static int tolua_cocos2d_DrawPrimitives_drawPoints00(lua_State* tolua_S)
|
|||
goto tolua_lerror;
|
||||
}
|
||||
|
||||
if(!luaval_to_vec2(tolua_S, lua_gettop(tolua_S), &points[i]))
|
||||
if(!luaval_to_vec2(tolua_S, lua_gettop(tolua_S), &points[i], "cc.DrawPrimitives.drawPoints"))
|
||||
{
|
||||
lua_pop(tolua_S, 1);
|
||||
CC_SAFE_DELETE_ARRAY(points);
|
||||
|
@ -4512,11 +4512,11 @@ static int tolua_cocos2d_DrawPrimitives_drawLine00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 origin;
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin))
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin, "cc.DrawPrimitives.drawLine"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 destination;
|
||||
if (!luaval_to_vec2(tolua_S, 2, &destination))
|
||||
if (!luaval_to_vec2(tolua_S, 2, &destination, "cc.DrawPrimitives.drawLine"))
|
||||
return 0;
|
||||
|
||||
DrawPrimitives::drawLine(origin,destination);
|
||||
|
@ -4545,11 +4545,11 @@ static int tolua_cocos2d_DrawPrimitives_drawRect00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 origin;
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin))
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin, "cc.DrawPrimitives.drawRect"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 destination;
|
||||
if (!luaval_to_vec2(tolua_S, 2, &destination))
|
||||
if (!luaval_to_vec2(tolua_S, 2, &destination, "cc.DrawPrimitives.drawRect"))
|
||||
return 0;
|
||||
|
||||
DrawPrimitives::drawRect(origin,destination);
|
||||
|
@ -4580,15 +4580,15 @@ static int tolua_cocos2d_DrawPrimitives_drawSolidRect00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 origin;
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin))
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin, "cc.DrawPrimitives.drawSolidRect"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 destination;
|
||||
if (!luaval_to_vec2(tolua_S, 2, &destination))
|
||||
if (!luaval_to_vec2(tolua_S, 2, &destination, "cc.DrawPrimitives.drawSolidRect"))
|
||||
return 0;
|
||||
|
||||
Color4F color;
|
||||
if (!luaval_to_color4f(tolua_S, 3, &color))
|
||||
if (!luaval_to_color4f(tolua_S, 3, &color, "cc.DrawPrimitives.drawSolidRect"))
|
||||
return 0;
|
||||
|
||||
|
||||
|
@ -4638,7 +4638,7 @@ static int tolua_cocos2d_DrawPrimitives_drawPoly00(lua_State* tolua_S)
|
|||
goto tolua_lerror;
|
||||
}
|
||||
|
||||
if(!luaval_to_vec2(tolua_S, lua_gettop(tolua_S), &points[i]))
|
||||
if(!luaval_to_vec2(tolua_S, lua_gettop(tolua_S), &points[i], "cc.DrawPrimitives.drawPoly"))
|
||||
{
|
||||
lua_pop(tolua_S, 1);
|
||||
CC_SAFE_DELETE_ARRAY(points);
|
||||
|
@ -4692,7 +4692,7 @@ static int tolua_cocos2d_DrawPrimitives_drawSolidPoly00(lua_State* tolua_S)
|
|||
goto tolua_lerror;
|
||||
}
|
||||
|
||||
if(!luaval_to_vec2(tolua_S, lua_gettop(tolua_S), &points[i]))
|
||||
if(!luaval_to_vec2(tolua_S, lua_gettop(tolua_S), &points[i], "cc.DrawPrimitives.drawSolidPoly"))
|
||||
{
|
||||
lua_pop(tolua_S, 1);
|
||||
CC_SAFE_DELETE_ARRAY(points);
|
||||
|
@ -4702,7 +4702,7 @@ static int tolua_cocos2d_DrawPrimitives_drawSolidPoly00(lua_State* tolua_S)
|
|||
}
|
||||
|
||||
Color4F color;
|
||||
if (!luaval_to_color4f(tolua_S, 3, &color))
|
||||
if (!luaval_to_color4f(tolua_S, 3, &color, "cc.DrawPrimitives.drawSolidPoly"))
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(points);
|
||||
return 0;
|
||||
|
@ -4742,7 +4742,7 @@ static int tolua_cocos2d_DrawPrimitives_drawCircle00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 center;
|
||||
if (!luaval_to_vec2(tolua_S, 1, ¢er))
|
||||
if (!luaval_to_vec2(tolua_S, 1, ¢er, "cc.DrawPrimitives.drawCircle"))
|
||||
return 0;
|
||||
|
||||
float radius = ((float) tolua_tonumber(tolua_S,2,0));
|
||||
|
@ -4783,7 +4783,7 @@ static int tolua_cocos2d_DrawPrimitives_drawSolidCircle00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 center;
|
||||
if (!luaval_to_vec2(tolua_S, 1, ¢er))
|
||||
if (!luaval_to_vec2(tolua_S, 1, ¢er, "cc.DrawPrimitives.drawSolidCircle"))
|
||||
return 0;
|
||||
float radius = ((float) tolua_tonumber(tolua_S,2,0));
|
||||
float angle = ((float) tolua_tonumber(tolua_S,3,0));
|
||||
|
@ -4820,15 +4820,15 @@ static int tolua_cocos2d_DrawPrimitives_drawQuadBezier00(lua_State* tolua_S)
|
|||
#endif
|
||||
{
|
||||
cocos2d::Vec2 origin;
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin))
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin, "cc.DrawPrimitives.drawQuadBezier"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 control;
|
||||
if (!luaval_to_vec2(tolua_S, 2, &control))
|
||||
if (!luaval_to_vec2(tolua_S, 2, &control, "cc.DrawPrimitives.drawQuadBezier"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 destination;
|
||||
if (!luaval_to_vec2(tolua_S, 3, &destination))
|
||||
if (!luaval_to_vec2(tolua_S, 3, &destination, "cc.DrawPrimitives.drawQuadBezier"))
|
||||
return 0;
|
||||
|
||||
unsigned int segments = ((unsigned int) tolua_tonumber(tolua_S,4,0));
|
||||
|
@ -4863,19 +4863,19 @@ static int tolua_cocos2d_DrawPrimitives_drawCubicBezier00(lua_State* tolua_S)
|
|||
{
|
||||
|
||||
cocos2d::Vec2 origin;
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin))
|
||||
if (!luaval_to_vec2(tolua_S, 1, &origin, "cc.DrawPrimitives.drawCubicBezier"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 control1;
|
||||
if (!luaval_to_vec2(tolua_S, 2, &control1))
|
||||
if (!luaval_to_vec2(tolua_S, 2, &control1, "cc.DrawPrimitives.drawCubicBezier"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 control2;
|
||||
if (!luaval_to_vec2(tolua_S, 3, &control2))
|
||||
if (!luaval_to_vec2(tolua_S, 3, &control2, "cc.DrawPrimitives.drawCubicBezier"))
|
||||
return 0;
|
||||
|
||||
cocos2d::Vec2 destination;
|
||||
if (!luaval_to_vec2(tolua_S, 4, &destination))
|
||||
if (!luaval_to_vec2(tolua_S, 4, &destination, "cc.DrawPrimitives.drawCubicBezier"))
|
||||
return 0;
|
||||
|
||||
unsigned int segments = ((unsigned int) tolua_tonumber(tolua_S,5,0));
|
||||
|
@ -4907,7 +4907,7 @@ int tolua_cocos2d_DrawPrimitives_drawCatmullRom00(lua_State* tolua_S)
|
|||
{
|
||||
int num = 0;
|
||||
cocos2d::Vec2 *arr = NULL;
|
||||
if (!luaval_to_array_of_vec2(tolua_S, 1, &arr, &num))
|
||||
if (!luaval_to_array_of_vec2(tolua_S, 1, &arr, &num, "cc.DrawPrimitives.drawCatmullRom"))
|
||||
return 0;
|
||||
|
||||
|
||||
|
@ -4954,7 +4954,7 @@ int tolua_cocos2d_DrawPrimitives_drawCardinalSpline00(lua_State* tolua_S)
|
|||
{
|
||||
int num = 0;
|
||||
cocos2d::Vec2 *arr = NULL;
|
||||
if (!luaval_to_array_of_vec2(tolua_S, 1, &arr, &num))
|
||||
if (!luaval_to_array_of_vec2(tolua_S, 1, &arr, &num, "cc.DrawPrimitives.drawCatmullRom"))
|
||||
return 0;
|
||||
|
||||
|
||||
|
|
|
@ -428,7 +428,7 @@ int lua_cocos2dx_studio_NodeReader_getInstance(lua_State* L)
|
|||
tolua_pushusertype(L,(void*)ret, "ccs.NodeReader");
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.NodeReader:getInstance",argc, 0);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
|
@ -471,7 +471,7 @@ int lua_cocos2dx_studio_ActionTimelineCache_getInstance(lua_State* L)
|
|||
tolua_pushusertype(L,(void*)ret, "ccs.ActionTimelineCache");
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "getInstance",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ActionTimelineCache:getInstance",argc, 0);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
|
|
|
@ -1996,13 +1996,13 @@ static int lua_cocos2dx_LabelBMFont_setLineBreakWithoutSpace(lua_State* tolua_S)
|
|||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LabelBMFont:setLineBreakWithoutSpace");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setLineBreakWithoutSpace(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setLineBreakWithoutSpace",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setLineBreakWithoutSpace",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2046,7 +2046,7 @@ static int lua_cocos2dx_LabelBMFont_getBlendFunc(lua_State* tolua_S)
|
|||
blendfunc_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:getBlendFunc",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2090,7 +2090,7 @@ static int lua_cocos2dx_LabelBMFont_isOpacityModifyRGB(lua_State* tolua_S)
|
|||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "isOpacityModifyRGB",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:isOpacityModifyRGB",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2130,14 +2130,14 @@ static int lua_cocos2dx_LabelBMFont_getLetter(lua_State* tolua_S)
|
|||
{
|
||||
int arg0;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LabelBMFont:getLetter");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cocos2d::Sprite* ret = cobj->getLetter(arg0);
|
||||
object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getLetter",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:getLetter",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2181,7 +2181,7 @@ static int lua_cocos2dx_LabelBMFont_getString(lua_State* tolua_S)
|
|||
tolua_pushcppstring(tolua_S,ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getString",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:getString",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2227,7 +2227,7 @@ static int lua_cocos2dx_LabelBMFont_setBlendFunc(lua_State* tolua_S)
|
|||
cobj->setBlendFunc(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBlendFunc",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setBlendFunc",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2267,13 +2267,13 @@ static int lua_cocos2dx_LabelBMFont_setString(lua_State* tolua_S)
|
|||
{
|
||||
std::string arg0;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:setString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setString(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setString",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setString",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2314,9 +2314,9 @@ static int lua_cocos2dx_LabelBMFont_initWithString(lua_State* tolua_S)
|
|||
std::string arg0;
|
||||
std::string arg1;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1);
|
||||
|
@ -2329,11 +2329,11 @@ static int lua_cocos2dx_LabelBMFont_initWithString(lua_State* tolua_S)
|
|||
std::string arg1;
|
||||
double arg2;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1,"cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelBMFont:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2);
|
||||
|
@ -2347,13 +2347,13 @@ static int lua_cocos2dx_LabelBMFont_initWithString(lua_State* tolua_S)
|
|||
double arg2;
|
||||
cocos2d::TextHAlignment arg3;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3);
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelBMFont:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2, arg3);
|
||||
|
@ -2368,22 +2368,22 @@ static int lua_cocos2dx_LabelBMFont_initWithString(lua_State* tolua_S)
|
|||
cocos2d::TextHAlignment arg3;
|
||||
cocos2d::Vec2 arg4;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3);
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelBMFont:initWithString");
|
||||
|
||||
ok &= luaval_to_vec2(tolua_S, 6, &arg4);
|
||||
ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.LabelBMFont:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithString",argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:initWithString",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2423,13 +2423,13 @@ static int lua_cocos2dx_LabelBMFont_setOpacityModifyRGB(lua_State* tolua_S)
|
|||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LabelBMFont:setOpacityModifyRGB");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setOpacityModifyRGB(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setOpacityModifyRGB",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setOpacityModifyRGB",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2473,7 +2473,7 @@ static int lua_cocos2dx_LabelBMFont_getFntFile(lua_State* tolua_S)
|
|||
tolua_pushcppstring(tolua_S,ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFntFile",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:getFntFile",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2513,7 +2513,7 @@ static int lua_cocos2dx_LabelBMFont_setFntFile(lua_State* tolua_S)
|
|||
{
|
||||
std::string arg0;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:setFntFile");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFntFile(arg0);
|
||||
|
@ -2524,15 +2524,15 @@ static int lua_cocos2dx_LabelBMFont_setFntFile(lua_State* tolua_S)
|
|||
std::string arg0;
|
||||
cocos2d::Vec2 arg1;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:setFntFile");
|
||||
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.LabelBMFont:setFntFile");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFntFile(arg0, arg1);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFntFile",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setFntFile",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2572,13 +2572,13 @@ static int lua_cocos2dx_LabelBMFont_setAlignment(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::TextHAlignment arg0;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LabelBMFont:setAlignment");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setAlignment(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setAlignment",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setAlignment",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2618,13 +2618,13 @@ static int lua_cocos2dx_LabelBMFont_setWidth(lua_State* tolua_S)
|
|||
{
|
||||
double arg0;
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LabelBMFont:setWidth");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setWidth(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setWidth",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:setWidth",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2663,10 +2663,10 @@ static int lua_cocos2dx_LabelBMFont_create(lua_State* tolua_S)
|
|||
if (argc == 2)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1);
|
||||
object_to_luaval<cocos2d::LabelBMFont>(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret);
|
||||
|
@ -2679,13 +2679,13 @@ static int lua_cocos2dx_LabelBMFont_create(lua_State* tolua_S)
|
|||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1, arg2);
|
||||
object_to_luaval<cocos2d::LabelBMFont>(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret);
|
||||
|
@ -2698,16 +2698,16 @@ static int lua_cocos2dx_LabelBMFont_create(lua_State* tolua_S)
|
|||
if (argc == 4)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::TextHAlignment arg3;
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3);
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1, arg2, arg3);
|
||||
object_to_luaval<cocos2d::LabelBMFont>(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret);
|
||||
|
@ -2720,19 +2720,19 @@ static int lua_cocos2dx_LabelBMFont_create(lua_State* tolua_S)
|
|||
if (argc == 5)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::TextHAlignment arg3;
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3);
|
||||
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::Vec2 arg4;
|
||||
ok &= luaval_to_vec2(tolua_S, 6, &arg4);
|
||||
ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.LabelBMFont:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelBMFont* ret = cocos2d::LabelBMFont::create(arg0, arg1, arg2, arg3, arg4);
|
||||
object_to_luaval<cocos2d::LabelBMFont>(tolua_S, "cc.LabelBMFont",(cocos2d::LabelBMFont*)ret);
|
||||
|
@ -2740,7 +2740,7 @@ static int lua_cocos2dx_LabelBMFont_create(lua_State* tolua_S)
|
|||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d", "cc.LabelBMFont:create",argc, 2);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
|
@ -2772,7 +2772,7 @@ static int lua_cocos2dx_LabelBMFont_constructor(lua_State* tolua_S)
|
|||
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LabelBMFont");
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "LabelBMFont",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelBMFont:new",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2851,11 +2851,11 @@ static int lua_cocos2dx_LabelTTF_enableShadow(lua_State* tolua_S)
|
|||
double arg1;
|
||||
double arg2;
|
||||
|
||||
ok &= luaval_to_size(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.LabelTTF:enableShadow");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LabelTTF:enableShadow");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:enableShadow");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->enableShadow(arg0, arg1, arg2);
|
||||
|
@ -2868,19 +2868,19 @@ static int lua_cocos2dx_LabelTTF_enableShadow(lua_State* tolua_S)
|
|||
double arg2;
|
||||
bool arg3;
|
||||
|
||||
ok &= luaval_to_size(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.LabelTTF:enableShadow");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LabelTTF:enableShadow");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:enableShadow");
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 5,&arg3);
|
||||
ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.LabelTTF:enableShadow");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->enableShadow(arg0, arg1, arg2, arg3);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "enableShadow",argc, 3);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:enableShadow",argc, 3);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2920,13 +2920,13 @@ static int lua_cocos2dx_LabelTTF_setDimensions(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::Size arg0;
|
||||
|
||||
ok &= luaval_to_size(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.LabelTTF:setDimensions");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setDimensions(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setDimensions",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setDimensions",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -2970,7 +2970,7 @@ static int lua_cocos2dx_LabelTTF_getFontSize(lua_State* tolua_S)
|
|||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFontSize",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getFontSize",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3014,7 +3014,7 @@ static int lua_cocos2dx_LabelTTF_getString(lua_State* tolua_S)
|
|||
tolua_pushcppstring(tolua_S,ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getString",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getString",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3054,13 +3054,13 @@ static int lua_cocos2dx_LabelTTF_setFlippedY(lua_State* tolua_S)
|
|||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LabelTTF:setFlippedY");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFlippedY(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFlippedY",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setFlippedY",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3100,13 +3100,13 @@ static int lua_cocos2dx_LabelTTF_setFlippedX(lua_State* tolua_S)
|
|||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LabelTTF:setFlippedX");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFlippedX(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFlippedX",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setFlippedX",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3146,13 +3146,13 @@ static int lua_cocos2dx_LabelTTF_setTextDefinition(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::FontDefinition arg0;
|
||||
|
||||
ok &= luaval_to_fontdefinition(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_fontdefinition(tolua_S, 2, &arg0, "cc.LabelTTF:setTextDefinition");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setTextDefinition(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setTextDefinition",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setTextDefinition",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3192,13 +3192,13 @@ static int lua_cocos2dx_LabelTTF_setFontName(lua_State* tolua_S)
|
|||
{
|
||||
std::string arg0;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:setFontName");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFontName(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFontName",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setFontName",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3242,7 +3242,7 @@ static int lua_cocos2dx_LabelTTF_getHorizontalAlignment(lua_State* tolua_S)
|
|||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getHorizontalAlignment",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getHorizontalAlignment",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3283,16 +3283,16 @@ static int lua_cocos2dx_LabelTTF_initWithStringAndTextDefinition(lua_State* tolu
|
|||
std::string arg0;
|
||||
cocos2d::FontDefinition arg1;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:initWithStringAndTextDefinition");
|
||||
|
||||
ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1, "cc.LabelTTF:initWithStringAndTextDefinition");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithStringAndTextDefinition(arg0, arg1);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithStringAndTextDefinition",argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:initWithStringAndTextDefinition",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3332,13 +3332,13 @@ static int lua_cocos2dx_LabelTTF_setString(lua_State* tolua_S)
|
|||
{
|
||||
std::string arg0;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:setString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setString(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setString",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setString",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3380,11 +3380,11 @@ static int lua_cocos2dx_LabelTTF_initWithString(lua_State* tolua_S)
|
|||
std::string arg1;
|
||||
double arg2;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2);
|
||||
|
@ -3398,13 +3398,13 @@ static int lua_cocos2dx_LabelTTF_initWithString(lua_State* tolua_S)
|
|||
double arg2;
|
||||
cocos2d::Size arg3;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3);
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.LabelTTF:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2, arg3);
|
||||
|
@ -3419,15 +3419,15 @@ static int lua_cocos2dx_LabelTTF_initWithString(lua_State* tolua_S)
|
|||
cocos2d::Size arg3;
|
||||
cocos2d::TextHAlignment arg4;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3);
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4);
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelTTF:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4);
|
||||
|
@ -3443,24 +3443,24 @@ static int lua_cocos2dx_LabelTTF_initWithString(lua_State* tolua_S)
|
|||
cocos2d::TextHAlignment arg4;
|
||||
cocos2d::TextVAlignment arg5;
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3);
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4);
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelTTF:initWithString");
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5);
|
||||
ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.LabelTTF:initWithString");
|
||||
if(!ok)
|
||||
return 0;
|
||||
bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
tolua_pushboolean(tolua_S,(bool)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "initWithString",argc, 3);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:initWithString",argc, 3);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3500,7 +3500,7 @@ static int lua_cocos2dx_LabelTTF_setFontFillColor(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::Color3B arg0;
|
||||
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LabelTTF:setFontFillColor");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFontFillColor(arg0);
|
||||
|
@ -3511,15 +3511,15 @@ static int lua_cocos2dx_LabelTTF_setFontFillColor(lua_State* tolua_S)
|
|||
cocos2d::Color3B arg0;
|
||||
bool arg1;
|
||||
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LabelTTF:setFontFillColor");
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.LabelTTF:setFontFillColor");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFontFillColor(arg0, arg1);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFontFillColor",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setFontFillColor",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3563,7 +3563,7 @@ static int lua_cocos2dx_LabelTTF_getBlendFunc(lua_State* tolua_S)
|
|||
blendfunc_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getBlendFunc",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getBlendFunc",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3604,9 +3604,9 @@ static int lua_cocos2dx_LabelTTF_enableStroke(lua_State* tolua_S)
|
|||
cocos2d::Color3B arg0;
|
||||
double arg1;
|
||||
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LabelTTF:enableStroke");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LabelTTF:enableStroke");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->enableStroke(arg0, arg1);
|
||||
|
@ -3618,17 +3618,17 @@ static int lua_cocos2dx_LabelTTF_enableStroke(lua_State* tolua_S)
|
|||
double arg1;
|
||||
bool arg2;
|
||||
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LabelTTF:enableStroke");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LabelTTF:enableStroke");
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.LabelTTF:enableStroke");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->enableStroke(arg0, arg1, arg2);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "enableStroke",argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:enableStroke",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3672,7 +3672,7 @@ static int lua_cocos2dx_LabelTTF_getDimensions(lua_State* tolua_S)
|
|||
size_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getDimensions",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getDimensions",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3712,13 +3712,13 @@ static int lua_cocos2dx_LabelTTF_setVerticalAlignment(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::TextVAlignment arg0;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LabelTTF:setVerticalAlignment");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setVerticalAlignment(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setVerticalAlignment",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setVerticalAlignment",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3758,13 +3758,13 @@ static int lua_cocos2dx_LabelTTF_setFontSize(lua_State* tolua_S)
|
|||
{
|
||||
double arg0;
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LabelTTF:setFontSize");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setFontSize(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setFontSize",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setFontSize",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3808,7 +3808,7 @@ static int lua_cocos2dx_LabelTTF_getVerticalAlignment(lua_State* tolua_S)
|
|||
tolua_pushnumber(tolua_S,(lua_Number)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getVerticalAlignment",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getVerticalAlignment",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3852,7 +3852,7 @@ static int lua_cocos2dx_LabelTTF_getTextDefinition(lua_State* tolua_S)
|
|||
fontdefinition_to_luaval(tolua_S, ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTextDefinition",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getTextDefinition",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3898,7 +3898,7 @@ static int lua_cocos2dx_LabelTTF_setBlendFunc(lua_State* tolua_S)
|
|||
cobj->setBlendFunc(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setBlendFunc",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setBlendFunc",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3942,7 +3942,7 @@ static int lua_cocos2dx_LabelTTF_getFontName(lua_State* tolua_S)
|
|||
tolua_pushcppstring(tolua_S,ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getFontName",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:getFontName",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -3982,13 +3982,13 @@ static int lua_cocos2dx_LabelTTF_setHorizontalAlignment(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::TextHAlignment arg0;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LabelTTF:setHorizontalAlignment");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->setHorizontalAlignment(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "setHorizontalAlignment",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:setHorizontalAlignment",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -4035,13 +4035,13 @@ static int lua_cocos2dx_LabelTTF_disableShadow(lua_State* tolua_S)
|
|||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LabelTTF:disableShadow");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->disableShadow(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "disableShadow",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:disableShadow",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -4088,13 +4088,13 @@ static int lua_cocos2dx_LabelTTF_disableStroke(lua_State* tolua_S)
|
|||
{
|
||||
bool arg0;
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LabelTTF:disableStroke");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->disableStroke(arg0);
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "disableStroke",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:disableStroke",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -4133,13 +4133,13 @@ static int lua_cocos2dx_LabelTTF_create(lua_State* tolua_S)
|
|||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2);
|
||||
object_to_luaval<cocos2d::LabelTTF>(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret);
|
||||
|
@ -4152,16 +4152,16 @@ static int lua_cocos2dx_LabelTTF_create(lua_State* tolua_S)
|
|||
if (argc == 4)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::Size arg3;
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3);
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2, arg3);
|
||||
object_to_luaval<cocos2d::LabelTTF>(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret);
|
||||
|
@ -4174,19 +4174,19 @@ static int lua_cocos2dx_LabelTTF_create(lua_State* tolua_S)
|
|||
if (argc == 5)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::Size arg3;
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3);
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::TextHAlignment arg4;
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4);
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2, arg3, arg4);
|
||||
object_to_luaval<cocos2d::LabelTTF>(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret);
|
||||
|
@ -4199,22 +4199,22 @@ static int lua_cocos2dx_LabelTTF_create(lua_State* tolua_S)
|
|||
if (argc == 6)
|
||||
{
|
||||
std::string arg0;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
std::string arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
double arg2;
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::Size arg3;
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3);
|
||||
ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::TextHAlignment arg4;
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4);
|
||||
ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::TextVAlignment arg5;
|
||||
ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5);
|
||||
ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.LabelTTF:create");
|
||||
if (!ok) { break; }
|
||||
cocos2d::LabelTTF* ret = cocos2d::LabelTTF::create(arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
object_to_luaval<cocos2d::LabelTTF>(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret);
|
||||
|
@ -4222,7 +4222,7 @@ static int lua_cocos2dx_LabelTTF_create(lua_State* tolua_S)
|
|||
}
|
||||
} while (0);
|
||||
ok = true;
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 3);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d", "cc.LabelTTF:create",argc, 3);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
|
@ -4249,15 +4249,15 @@ static int lua_cocos2dx_LabelTTF_createWithFontDefinition(lua_State* tolua_S)
|
|||
{
|
||||
std::string arg0;
|
||||
cocos2d::FontDefinition arg1;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelTTF:createWithFontDefinition");
|
||||
ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1, "cc.LabelTTF:createWithFontDefinition");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cocos2d::LabelTTF* ret = cocos2d::LabelTTF::createWithFontDefinition(arg0, arg1);
|
||||
object_to_luaval<cocos2d::LabelTTF>(tolua_S, "cc.LabelTTF",(cocos2d::LabelTTF*)ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "createWithFontDefinition",argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "cc.LabelTTF:createWithFontDefinition",argc, 2);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
|
@ -4289,7 +4289,7 @@ static int lua_cocos2dx_LabelTTF_constructor(lua_State* tolua_S)
|
|||
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LabelTTF");
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "LabelTTF",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelTTF:new",argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
@ -4803,7 +4803,7 @@ static int lua_cocos2dx_Label_create_deprecated(lua_State* tolua_S)
|
|||
cocos2d::Size dimensions = cocos2d::Size::ZERO;
|
||||
if (lua_istable(tolua_S, 5))
|
||||
{
|
||||
luaval_to_size(tolua_S, 5, &dimensions);
|
||||
luaval_to_size(tolua_S, 5, &dimensions, "cc.Label:create");
|
||||
}
|
||||
TextHAlignment hAlignment = static_cast<TextHAlignment>((int)tolua_tonumber(tolua_S, 6, 0));
|
||||
TextVAlignment vAlignment = static_cast<TextVAlignment>((int)tolua_tonumber(tolua_S, 7, 0));
|
||||
|
|
|
@ -35,7 +35,7 @@ static int lua_cocos2dx_experimental_TMXLayer_getTileGIDAt(lua_State* tolua_S)
|
|||
{
|
||||
cocos2d::Vec2 arg0;
|
||||
|
||||
ok &= luaval_to_vec2(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccexp.TMXLayer:getTileGIDAt");
|
||||
if(!ok)
|
||||
return 0;
|
||||
int ret = cobj->getTileGIDAt(arg0);
|
||||
|
@ -48,8 +48,8 @@ static int lua_cocos2dx_experimental_TMXLayer_getTileGIDAt(lua_State* tolua_S)
|
|||
cocos2d::Vec2 arg0;
|
||||
int arg1 = 0;
|
||||
|
||||
ok &= luaval_to_vec2(tolua_S, 2, &arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccexp.TMXLayer:getTileGIDAt");
|
||||
ok &= luaval_to_int32(tolua_S, 3, &arg1, "ccexp.TMXLayer:getTileGIDAt");
|
||||
|
||||
if(!ok)
|
||||
return 0;
|
||||
|
@ -59,7 +59,7 @@ static int lua_cocos2dx_experimental_TMXLayer_getTileGIDAt(lua_State* tolua_S)
|
|||
tolua_pushnumber(tolua_S,(lua_Number)arg1);
|
||||
return 2;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getTileGIDAt",argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ccexp.TMXLayer:getTileGIDAt",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
|
|
|
@ -54,7 +54,7 @@ static int lua_cocos2dx_experimental_video_VideoPlayer_addEventListener(lua_Stat
|
|||
|
||||
return 0;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "addEventListener",argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.VideoPlayer:addEventListener",argc, 0);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
|
|
|
@ -156,12 +156,12 @@ static int tolua_cocos2d_ScrollView_registerScriptHandler(lua_State* tolua_S)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'registerScriptHandler' function of ScrollView has wrong number of arguments: %d, was expecting %d\n", argc, 2);
|
||||
CCLOG("%s function of ScrollView has wrong number of arguments: %d, was expecting %d\n", "cc.ScrollView:registerScriptHandler",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'registerScriptHandler'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_ScrollView_registerScriptHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -201,12 +201,12 @@ static int tolua_cocos2d_ScrollView_unregisterScriptHandler(lua_State* tolua_S)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'unregisterScriptHandler' function of ScrollView has wrong number of arguments: %d, was expecting %d\n", argc, 1);
|
||||
CCLOG("%s function of ScrollView has wrong number of arguments: %d, was expecting %d\n", "cc.ScrollView:unregisterScriptHandler", argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'unregisterScriptHandler'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_ScrollView_unregisterScriptHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -277,12 +277,12 @@ static int tolua_cocos2d_Control_registerControlEventHandler(lua_State* tolua_S)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'registerControlEventHandler' function of Control has wrong number of arguments: %d, was expecting %d\n", argc, 2);
|
||||
CCLOG("%s function of Control has wrong number of arguments: %d, was expecting %d\n", "cc.Control:registerControlEventHandler", argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'registerControlEventHandler'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_Control_registerControlEventHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -330,12 +330,12 @@ static int tolua_cocos2d_control_unregisterControlEventHandler(lua_State* tolua_
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'unregisterControlEventHandler' function of Control has wrong number of arguments: %d, was expecting %d\n", argc, 1);
|
||||
CCLOG("%s function of Control has wrong number of arguments: %d, was expecting %d\n", "cc.Control:unregisterControlEventHandler", argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'unregisterControlEventHandler'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_control_unregisterControlEventHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -393,12 +393,12 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'registerScriptEditBoxHandler' function of EditBox has wrong number of arguments: %d, was expecting %d\n", argc, 1);
|
||||
CCLOG("%s function of EditBox has wrong number of arguments: %d, was expecting %d\n", "cc.EditBox:registerScriptEditBoxHandler", argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'registerScriptEditBoxHandler'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_EditBox_registerScriptEditBoxHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
|
@ -435,12 +435,12 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'unregisterScriptEditBoxHandler' function of EditBox has wrong number of arguments: %d, was expecting %d\n", argc, 0);
|
||||
CCLOG("%s function of EditBox has wrong number of arguments: %d, was expecting %d\n", "cc.EditBox:unregisterScriptEditBoxHandler", argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'unregisterScriptEditBoxHandler'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -484,12 +484,12 @@ static int tolua_cocos2d_CCBProxy_create(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
CCLOG("'create' function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", argc, 0);
|
||||
CCLOG("%s function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", "cc.CCBProxy:create", argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBProxy_create'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -528,12 +528,12 @@ static int tolua_cocos2d_CCBProxy_createCCBReader(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
CCLOG("'createCCBReader' function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", argc, 0);
|
||||
CCLOG("%s function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", "cc.CCBProxy:createCCBReader", argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'createCCBReader'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBProxy_createCCBReader'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -588,12 +588,12 @@ static int tolua_cocos2d_CCBProxy_readCCBFromFile(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
CCLOG("'readCCBFromFile' function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", argc, 2);
|
||||
CCLOG("%s function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", "cc.CCBReader:readCCBFromFile", argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'readCCBFromFile'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBProxy_readCCBFromFile'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -635,12 +635,12 @@ static int tolua_cocos2d_CCBProxy_getNodeTypeName(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
CCLOG("'getNodeTypeName' function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", argc, 1);
|
||||
CCLOG(" %s has wrong number of arguments: %d, was expecting %d\n", "cc.CCBProxy:getNodeTypeName", argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'getNodeTypeName'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBProxy_getNodeTypeName'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -685,12 +685,12 @@ static int tolua_cocos2d_CCBProxy_setCallback(lua_State* tolua_S)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'setCallback' function of CCBProxy has wrong number of arguments: %d, was expecting %d\n", argc, 2);
|
||||
CCLOG(" %s has wrong number of arguments: %d, was expecting %d\n", "cc.CCBProxy:setCallback", argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'setCallback'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBProxy_setCallback'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -743,7 +743,7 @@ static int tolua_cocos2d_CCBReader_load(lua_State* tolua_S)
|
|||
{
|
||||
const char* fileName = nullptr;
|
||||
std::string fileName_tmp = "";
|
||||
ok &= luaval_to_std_string(tolua_S, 2, &fileName_tmp);
|
||||
ok &= luaval_to_std_string(tolua_S, 2, &fileName_tmp, "cc.CCBReader:load");
|
||||
fileName = fileName_tmp.c_str();
|
||||
if (!ok)
|
||||
return 0;
|
||||
|
@ -773,7 +773,7 @@ static int tolua_cocos2d_CCBReader_load(lua_State* tolua_S)
|
|||
}
|
||||
|
||||
Size size;
|
||||
ok &= luaval_to_size(tolua_S, 4, &size);
|
||||
ok &= luaval_to_size(tolua_S, 4, &size, "cc.CCBReader:load");
|
||||
if (!ok)
|
||||
return 0;
|
||||
|
||||
|
@ -785,12 +785,12 @@ static int tolua_cocos2d_CCBReader_load(lua_State* tolua_S)
|
|||
|
||||
}
|
||||
|
||||
CCLOG("'load' function of CCBReader has wrong number of arguments: %d, was expecting %d\n", argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.CCBReader:load",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'load'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBReader_load'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -852,12 +852,12 @@ static int tolua_cocos2d_CCBAnimationManager_setCallFuncForLuaCallbackNamed(lua_
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'setCallFuncForLuaCallbackNamed' function of CCBAnimationManager has wrong number of arguments: %d, was expecting %d\n", argc, 1);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.CCBAnimationManager:setCallFuncForLuaCallbackNamed",argc, 1);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'setCallFuncForLuaCallbackNamed'.",&tolua_err);
|
||||
tolua_error(tolua_S,"#ferror in function 'tolua_cocos2d_CCBAnimationManager_setCallFuncForLuaCallbackNamed'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -968,12 +968,12 @@ static int lua_cocos2dx_AssetsManager_setDelegate(lua_State* L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'setDelegate' function of AssetsManager has wrong number of arguments: %d, was expecting %d\n", argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.AssetsManager:setDelegate", argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(L,"#ferror in function 'setDelegate'.",&tolua_err);
|
||||
tolua_error(L,"#ferror in function 'lua_cocos2dx_AssetsManager_setDelegate'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -1302,7 +1302,7 @@ static int lua_cocos2dx_TableView_create(lua_State* L)
|
|||
{
|
||||
LUA_TableViewDataSource* dataSource = new LUA_TableViewDataSource();
|
||||
Size size;
|
||||
ok &= luaval_to_size(L, 2, &size);
|
||||
ok &= luaval_to_size(L, 2, &size, "cc.TableView:create");
|
||||
|
||||
TableView* ret = nullptr;
|
||||
|
||||
|
@ -1358,7 +1358,7 @@ static int lua_cocos2d_TableView_registerScriptHandler(lua_State* L)
|
|||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
if (!tolua_isusertype(L,1,"cc.TableView",0,&tolua_err)) goto tolua_lerror;
|
||||
if (!tolua_isusertype(L,1,"",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
self = static_cast<TableView*>(tolua_tousertype(L,1,0));
|
||||
|
@ -1386,12 +1386,12 @@ static int lua_cocos2d_TableView_registerScriptHandler(lua_State* L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'registerScriptHandler' function of TableView has wrong number of arguments: %d, was expecting %d\n", argc, 2);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.TableView:registerScriptHandler",argc, 2);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(L,"#ferror in function 'registerScriptHandler'.",&tolua_err);
|
||||
tolua_error(L,"#ferror in function 'tolua_cocos2d_TableView_registerScriptHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
@ -1431,12 +1431,12 @@ static int lua_cocos2d_TableView_unregisterScriptHandler(lua_State* L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
CCLOG("'unregisterScriptHandler' function of TableView has wrong number of arguments: %d, was expecting %d\n", argc, 0);
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n", "cc.TableView:unregisterScriptHandler", argc, 0);
|
||||
return 0;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(L,"#ferror in function 'unregisterScriptHandler'.",&tolua_err);
|
||||
tolua_error(L,"#ferror in function 'lua_cocos2d_TableView_unregisterScriptHandler'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -174,8 +174,8 @@ int lua_cocos2dx_physics_PhysicsWorld_rayCast(lua_State* tolua_S)
|
|||
};
|
||||
} while(0);
|
||||
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg2);
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsWorld:rayCast");
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsWorld:rayCast");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->rayCast(arg0, arg1, arg2, nullptr);
|
||||
|
@ -231,7 +231,7 @@ int lua_cocos2dx_physics_PhysicsWorld_queryRect(lua_State* tolua_S)
|
|||
};
|
||||
} while(0);
|
||||
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.PhysicsWorld:queryRect");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->queryRect(arg0, arg1, nullptr);
|
||||
|
@ -290,7 +290,7 @@ int lua_cocos2dx_physics_PhysicsWorld_queryPoint(lua_State* tolua_S)
|
|||
assert(false);
|
||||
} while(0)
|
||||
;
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg1);
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsWorld:queryPoint");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->queryPoint(arg0, arg1, nullptr);
|
||||
|
@ -328,7 +328,7 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0 = nullptr;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createPolygon");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -359,11 +359,11 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S)
|
|||
int arg1 = 0;
|
||||
cocos2d::PhysicsMaterial arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createPolygon");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsBody:createPolygon");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -393,12 +393,12 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S)
|
|||
cocos2d::PhysicsMaterial arg2;
|
||||
cocos2d::Vec2 arg3;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createPolygon");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg3);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsBody:createPolygon");
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg3, "cc.PhysicsBody:createPolygon");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -449,7 +449,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgePolygon");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -480,11 +480,11 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S)
|
|||
int arg1;
|
||||
cocos2d::PhysicsMaterial arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgePolygon");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsBody:createEdgePolygon");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -513,12 +513,12 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S)
|
|||
cocos2d::PhysicsMaterial arg2;
|
||||
double arg3;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgePolygon");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsBody:createEdgePolygon");
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3, "cc.PhysicsBody:createEdgePolygon");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -569,7 +569,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgeChain");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -600,11 +600,11 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S)
|
|||
int arg1;
|
||||
cocos2d::PhysicsMaterial arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgeChain");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsBody:createEdgeChain");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -633,12 +633,12 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S)
|
|||
cocos2d::PhysicsMaterial arg2;
|
||||
double arg3;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgeChain");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsBody:createEdgeChain");
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3, "cc.PhysicsBody:createEdgeChain");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -689,7 +689,7 @@ int lua_cocos2dx_physics_PhysicsShape_recenterPoints(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShape:recenterPoints");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -710,11 +710,11 @@ int lua_cocos2dx_physics_PhysicsShape_recenterPoints(lua_State* tolua_S)
|
|||
int arg1 = 0;
|
||||
cocos2d::Vec2 arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShape:recenterPoints");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_vec2(tolua_S, 3, &arg2, "cc.PhysicsShape:recenterPoints");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -754,7 +754,7 @@ int lua_cocos2dx_physics_PhysicsShape_getPolyonCenter(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShape:getPolyonCenter");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -883,7 +883,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapePolygon:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -904,11 +904,11 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S)
|
|||
int arg1 = 0;
|
||||
cocos2d::PhysicsMaterial arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapePolygon:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsShapePolygon:create");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -926,12 +926,12 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S)
|
|||
cocos2d::PhysicsMaterial arg2;
|
||||
cocos2d::Vec2 arg3;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapePolygon:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg3);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsShapePolygon:create");
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg3, "cc.PhysicsShapePolygon:create");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -970,7 +970,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapePolygon:calculateArea");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -1012,9 +1012,9 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S)
|
|||
double arg0;
|
||||
cocos2d::Vec2* arg1;
|
||||
int arg2 = 0;
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsShapePolygon:calculateMoment");
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 3, &arg1, &arg2);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 3, &arg1, &arg2, "cc.PhysicsShapePolygon:calculateMoment");
|
||||
if (nullptr == arg1){
|
||||
LUA_PRECONDITION( arg1, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -1034,13 +1034,13 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg1;
|
||||
int arg2 = 0;
|
||||
cocos2d::Vec2 arg3;
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0);
|
||||
ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsShapePolygon:calculateMoment");
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 3, &arg1, &arg2);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 3, &arg1, &arg2, "cc.PhysicsShapePolygon:calculateMoment");
|
||||
if (nullptr == arg1){
|
||||
LUA_PRECONDITION( arg1, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg3);
|
||||
ok &= luaval_to_vec2(tolua_S, 4, &arg3, "cc.PhysicsShapePolygon:calculateMoment");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg1);
|
||||
|
@ -1316,7 +1316,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgePolygon:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -1336,11 +1336,11 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S)
|
|||
int arg1 = 0;
|
||||
cocos2d::PhysicsMaterial arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgePolygon:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsShapeEdgePolygon:create");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -1358,12 +1358,12 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S)
|
|||
cocos2d::PhysicsMaterial arg2;
|
||||
double arg3;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgePolygon:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsShapeEdgePolygon:create");
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3, "cc.PhysicsShapeEdgePolygon:create");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -1403,7 +1403,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S)
|
|||
cocos2d::Vec2* arg0;
|
||||
int arg1 = 0;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgeChain:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
|
@ -1423,11 +1423,11 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S)
|
|||
int arg1 = 0;
|
||||
cocos2d::PhysicsMaterial arg2;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgeChain:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsShapeEdgeChain:create");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
@ -1445,12 +1445,12 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S)
|
|||
cocos2d::PhysicsMaterial arg2;
|
||||
double arg3;
|
||||
do {
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1);
|
||||
ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgeChain:create");
|
||||
if (nullptr == arg0){
|
||||
LUA_PRECONDITION( arg0, "Invalid Native Object");
|
||||
}} while (0);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2);
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3);
|
||||
ok &= luaval_to_physics_material(tolua_S, 3, &arg2, "cc.PhysicsShapeEdgeChain:create");
|
||||
ok &= luaval_to_number(tolua_S, 4,&arg3, "cc.PhysicsShapeEdgeChain:create");
|
||||
if(!ok)
|
||||
{
|
||||
CC_SAFE_DELETE_ARRAY(arg0);
|
||||
|
|
|
@ -54,10 +54,10 @@ static int tolua_cocos2dx_setBlendFunc(lua_State* tolua_S,const char* className)
|
|||
if (2 == argc)
|
||||
{
|
||||
GLenum src, dst;
|
||||
if (!luaval_to_int32(tolua_S, 2, (int32_t*)&src))
|
||||
if (!luaval_to_int32(tolua_S, 2, (int32_t*)&src, StringUtils::format("%s%s",className,":setBlendFunc").c_str()))
|
||||
return 0;
|
||||
|
||||
if (!luaval_to_int32(tolua_S, 3, (int32_t*)&dst))
|
||||
if (!luaval_to_int32(tolua_S, 3, (int32_t*)&dst,StringUtils::format("%s%s",className,":setBlendFunc").c_str()))
|
||||
return 0;
|
||||
|
||||
BlendFunc blendFunc = {src, dst};
|
||||
|
@ -338,11 +338,11 @@ static int lua_cocos2dx_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S)
|
|||
const char* arg1;
|
||||
bool arg2;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonAnimation:addAnimation");
|
||||
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str();
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "sp.SkeletonAnimation:addAnimation"); arg1 = arg1_tmp.c_str();
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "sp.SkeletonAnimation:addAnimation");
|
||||
if(!ok)
|
||||
return 0;
|
||||
cobj->addAnimation(arg0, arg1, arg2);
|
||||
|
@ -356,13 +356,13 @@ static int lua_cocos2dx_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S)
|
|||
bool arg2;
|
||||
double arg3;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonAnimation:addAnimation");
|
||||
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str();
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "sp.SkeletonAnimation:addAnimation"); arg1 = arg1_tmp.c_str();
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "sp.SkeletonAnimation:addAnimation");
|
||||
|
||||
ok &= luaval_to_number(tolua_S, 5,&arg3);
|
||||
ok &= luaval_to_number(tolua_S, 5,&arg3, "sp.SkeletonAnimation:addAnimation");
|
||||
if(!ok)
|
||||
return 0;
|
||||
|
||||
|
@ -413,11 +413,11 @@ static int lua_cocos2dx_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S)
|
|||
const char* arg1;
|
||||
bool arg2;
|
||||
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0);
|
||||
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "sp.SkeletonAnimation:setAnimation");
|
||||
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp); arg1 = arg1_tmp.c_str();
|
||||
std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "sp.SkeletonAnimation:setAnimation"); arg1 = arg1_tmp.c_str();
|
||||
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2);
|
||||
ok &= luaval_to_boolean(tolua_S, 4,&arg2, "sp.SkeletonAnimation:setAnimation");
|
||||
if(!ok)
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6fcfc80c68b22de00342cc3fa8e0f3168bcf5e06
|
||||
Subproject commit ee16f692722f6bbb7d485032751f9b826ec9e926
|
Loading…
Reference in New Issue