Migrate macro COCOS2D_DEBUG, refer #751

This commit is contained in:
halx99 2022-07-19 15:34:26 +08:00
parent e1f458c679
commit 2c6fde019b
39 changed files with 1097 additions and 1097 deletions

View File

@ -109,7 +109,7 @@ endif()
# Set macro definitions for special platforms
function(use_axis_compile_define target)
target_compile_definitions(${target} PUBLIC $<$<CONFIG:Debug>:COCOS2D_DEBUG=1>)
target_compile_definitions(${target} PUBLIC $<$<CONFIG:Debug>:AXIS_DEBUG=1>)
# !important axis not use double precision
# target_compile_definitions(${target} PUBLIC CP_USE_CGTYPES=0)

View File

@ -44,7 +44,7 @@ static void problemLoading(const char* filename)
inline void setNodeIgnoreDesignScale(axis::Node* node)
{
CCASSERT(node, "node pointer cannot be null.");
AXASSERT(node, "node pointer cannot be null.");
Size actualFrameSize = Director::getInstance()->getOpenGLView()->getFrameSize();
Size actualWinSize = Director::getInstance()->getWinSizeInPixels();

View File

@ -712,7 +712,7 @@ int LuaStack::luaLoadBuffer(lua_State* L, const char* chunk, int chunkSize, cons
skipBOM(chunk, chunkSize);
r = luaL_loadbuffer(L, chunk, chunkSize, chunkName);
#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG > 0
#if defined(AXIS_DEBUG) && AXIS_DEBUG > 0
if (r)
{
switch (r)

View File

@ -32,7 +32,7 @@
std::unordered_map<uintptr_t, const char*> g_luaType;
std::unordered_map<cxx17::string_view, const char*> g_typeCast;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
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))
@ -93,7 +93,7 @@ bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue, const char
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -117,7 +117,7 @@ bool luaval_to_float(lua_State* L, int lo, float* outValue, const char* funcName
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -141,7 +141,7 @@ bool luaval_to_int32(lua_State* L, int lo, int* outValue, const char* funcName)
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -181,7 +181,7 @@ bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue, const char*
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -205,7 +205,7 @@ bool luaval_to_uint16(lua_State* L, int lo, uint16_t* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -229,7 +229,7 @@ bool luaval_to_boolean(lua_State* L, int lo, bool* outValue, const char* funcNam
tolua_Error tolua_err;
if (!tolua_isboolean(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -253,7 +253,7 @@ bool luaval_to_number(lua_State* L, int lo, double* outValue, const char* funcNa
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -277,7 +277,7 @@ bool luaval_to_long_long(lua_State* L, int lo, long long* outValue, const char*
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -301,7 +301,7 @@ bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue, const cha
tolua_Error tolua_err;
if (!tolua_iscppstring(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -327,7 +327,7 @@ bool luaval_to_std_string_view(lua_State* L, int lo, cxx17::string_view* outValu
tolua_Error tolua_err;
if (!tolua_iscppstring(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -353,7 +353,7 @@ bool luaval_to_vec2(lua_State* L, int lo, axis::Vec2* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -402,7 +402,7 @@ bool luaval_to_vec3(lua_State* L, int lo, axis::Vec3* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -438,7 +438,7 @@ bool luaval_to_vec4(lua_State* L, int lo, axis::Vec4* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -479,7 +479,7 @@ bool luaval_to_blendfunc(lua_State* L, int lo, axis::BlendFunc* outValue, const
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -517,7 +517,7 @@ bool luaval_to_physics_material(lua_State* L, int lo, PhysicsMaterial* outValue,
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
# endif
ok = false;
@ -554,7 +554,7 @@ bool luaval_to_ssize_t(lua_State* L, int lo, ssize_t* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -578,7 +578,7 @@ bool luaval_to_size_t(lua_State* L, int lo, size_t* outValue, const char* funcNa
tolua_Error tolua_err;
if (!tolua_isnumber(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -602,7 +602,7 @@ bool luaval_to_size(lua_State* L, int lo, Size* outValue, const char* funcName)
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -634,7 +634,7 @@ bool luaval_to_rect(lua_State* L, int lo, Rect* outValue, const char* funcName)
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -676,7 +676,7 @@ bool luaval_to_color4b(lua_State* L, int lo, Color4B* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -718,7 +718,7 @@ bool luaval_to_color4f(lua_State* L, int lo, Color4F* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -760,7 +760,7 @@ bool luaval_to_color3b(lua_State* L, int lo, Color3B* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -797,7 +797,7 @@ bool luaval_to_affinetransform(lua_State* L, int lo, AffineTransform* outValue,
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1003,7 +1003,7 @@ bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue, co
}
lua_pop(L, 1);
}
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
else
{
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
@ -1023,7 +1023,7 @@ bool luaval_to_ttfconfig(lua_State* L, int lo, axis::TTFConfig* outValue, const
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1078,7 +1078,7 @@ bool luaval_to_mat4(lua_State* L, int lo, axis::Mat4* outValue, const char* func
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
ok = false;
#endif
@ -1125,7 +1125,7 @@ bool luaval_to_array_of_vec2(lua_State* L, int lo, axis::Vec2** points, int* num
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1145,7 +1145,7 @@ bool luaval_to_array_of_vec2(lua_State* L, int lo, axis::Vec2** points, int* num
lua_gettable(L, lo);
if (!tolua_istable(L, -1, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
lua_pop(L, 1);
@ -1293,7 +1293,7 @@ bool luaval_to_ccvaluemap(lua_State* L, int lo, axis::ValueMap* ret, const char*
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1380,7 +1380,7 @@ bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, axis::ValueMapIntKey* ret,
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1468,7 +1468,7 @@ bool luaval_to_ccvaluevector(lua_State* L, int lo, axis::ValueVector* ret, const
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1550,7 +1550,7 @@ bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector<std::string>*
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1591,7 +1591,7 @@ bool luaval_to_std_vector_string_view(lua_State* L, int lo, std::vector<std::str
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1632,7 +1632,7 @@ bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector<int>* ret, const
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1671,7 +1671,7 @@ bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, axis::MeshVertexAttrib*
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1704,7 +1704,7 @@ bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector<float>* ret, c
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1743,7 +1743,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
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1782,7 +1782,7 @@ bool luaval_to_quaternion(lua_State* L, int lo, axis::Quaternion* outValue, cons
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1823,7 +1823,7 @@ bool luaval_to_texparams(lua_State* L, int lo, axis::Texture2D::TexParams* outVa
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1864,7 +1864,7 @@ bool luaval_to_tex2f(lua_State* L, int lo, axis::Tex2F* outValue, const char* fu
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1895,7 +1895,7 @@ bool luaval_to_v3f_c4b_t2f(lua_State* L, int lo, axis::V3F_C4B_T2F* outValue, co
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -1962,7 +1962,7 @@ bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector<axis::Vec2>* re
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -2005,7 +2005,7 @@ bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector<axis::Vec3>* re
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -2051,7 +2051,7 @@ bool luaval_to_std_vector_v3f_c4b_t2f(lua_State* L,
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;
@ -2984,7 +2984,7 @@ bool luaval_to_std_map_string_string(lua_State* L, int lo, hlookup::string_map<s
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;

View File

@ -52,7 +52,7 @@ USING_NS_AX;
extern std::unordered_map<uintptr_t, const char*> g_luaType;
extern std::unordered_map<cxx17::string_view, const char*> g_typeCast;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName = "");
#endif
@ -626,7 +626,7 @@ bool luaval_to_ccmap_string_key(lua_State* L, int lo, axis::Map<std::string, T>*
bool ok = true;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err);
#endif
ok = false;

View File

@ -33,14 +33,14 @@ static int lua_get_AudioProfile_name(lua_State* L)
{
axis::AudioProfile* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_AudioProfile_name'\n", nullptr);
@ -51,7 +51,7 @@ static int lua_get_AudioProfile_name(lua_State* L)
lua_pushstring(L, self->name.c_str());
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_AudioProfile_name'.", &tolua_err);
return 0;
@ -63,14 +63,14 @@ static int lua_set_AudioProfile_name(lua_State* L)
int argc = 0;
axis::AudioProfile* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_set_AudioProfile_name'\n", nullptr);
@ -82,7 +82,7 @@ static int lua_set_AudioProfile_name(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -92,7 +92,7 @@ static int lua_set_AudioProfile_name(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_set_AudioProfile_name'.", &tolua_err);
return 0;
@ -103,14 +103,14 @@ static int lua_get_AudioProfile_maxInstances(lua_State* L)
{
axis::AudioProfile* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_AudioProfile_maxInstances'\n", nullptr);
@ -121,7 +121,7 @@ static int lua_get_AudioProfile_maxInstances(lua_State* L)
tolua_pushnumber(L, (lua_Number)self->maxInstances);
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_AudioProfile_maxInstances'.", &tolua_err);
return 0;
@ -133,14 +133,14 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L)
int argc = 0;
axis::AudioProfile* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_set_AudioProfile_maxInstances'\n", nullptr);
@ -152,7 +152,7 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isnumber(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -162,7 +162,7 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_set_AudioProfile_maxInstances'.", &tolua_err);
return 0;
@ -173,14 +173,14 @@ static int lua_get_AudioProfile_minDelay(lua_State* L)
{
axis::AudioProfile* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_AudioProfile_minDelay'\n", nullptr);
@ -191,7 +191,7 @@ static int lua_get_AudioProfile_minDelay(lua_State* L)
tolua_pushnumber(L, (lua_Number)self->minDelay);
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_AudioProfile_minDelay'.", &tolua_err);
return 0;
@ -203,14 +203,14 @@ static int lua_set_AudioProfile_minDelay(lua_State* L)
int argc = 0;
axis::AudioProfile* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_set_AudioProfile_minDelay'\n", nullptr);
@ -222,7 +222,7 @@ static int lua_set_AudioProfile_minDelay(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isnumber(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -232,7 +232,7 @@ static int lua_set_AudioProfile_minDelay(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_set_AudioProfile_minDelay'.", &tolua_err);
return 0;
@ -244,11 +244,11 @@ int lua_axis_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S)
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.AudioEngine", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -260,7 +260,7 @@ int lua_axis_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S)
int arg0;
ok &= luaval_to_int32(tolua_S, 2, (int*)&arg0, "ax.AudioEngine:setFinishCallback");
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -285,7 +285,7 @@ int lua_axis_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setFinishCallback",
argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_audioengine_AudioEngine_setFinishCallback'.", &tolua_err);
#endif

View File

@ -26,7 +26,7 @@
#include "scripting/lua-bindings/manual/cocostudio/lua-cocostudio-conversions.h"
#include "ActionTimeline/CCActionTimeline.h"
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
extern void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName);
#endif
@ -40,7 +40,7 @@ bool luaval_to_animationInfo(lua_State* L, int lo, cocostudio::timeline::Animati
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
#endif
ok = false;

View File

@ -75,7 +75,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L)
int argc = 0;
ArmatureAnimation* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ccs.ArmatureAnimation", 0, &tolua_err))
goto tolua_lerror;
@ -83,7 +83,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L)
self = static_cast<ArmatureAnimation*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_ArmatureAnimation_setMovementEventCallFunc'\n", NULL);
@ -94,7 +94,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -135,7 +135,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'setMovementEventCallFunc'.", &tolua_err);
return 0;
@ -150,7 +150,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L)
int argc = 0;
ArmatureAnimation* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ccs.ArmatureAnimation", 0, &tolua_err))
goto tolua_lerror;
@ -158,7 +158,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L)
self = static_cast<ArmatureAnimation*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_ArmatureAnimation_setFrameEventCallFunc'\n", NULL);
@ -169,7 +169,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -212,7 +212,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L)
"'setFrameEventCallFunc' function of ArmatureAnimation has wrong number of arguments: %d, was expecting %d\n",
argc, 1);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'setFrameEventCallFunc'.", &tolua_err);
#endif
@ -239,7 +239,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta
int argc = 0;
ArmatureDataManager* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ccs.ArmatureDataManager", 0, &tolua_err))
goto tolua_lerror;
@ -247,7 +247,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta
self = static_cast<ArmatureDataManager*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L,
@ -260,7 +260,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta
if (2 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err) || !toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -282,7 +282,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta
}
else if (4 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err) ||
!tolua_isstring(L, 4, 0, &tolua_err) || !toluafix_isfunction(L, 5, "LUA_FUNCTION", 0, &tolua_err))
{
@ -312,7 +312,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta
"expecting %d\n",
argc, 1);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addArmatureFileInfoAsync'.", &tolua_err);
#endif
@ -339,7 +339,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L)
int argc = 0;
cocostudio::Bone* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ccs.Bone", 0, &tolua_err))
goto tolua_lerror;
@ -347,7 +347,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L)
self = static_cast<cocostudio::Bone*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_extension_Bone_setIgnoreMovementBoneData'\n", NULL);
@ -359,7 +359,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isboolean(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -372,7 +372,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L)
argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'setIgnoreMovementBoneData'.", &tolua_err);
return 0;
@ -387,7 +387,7 @@ static int lua_axis_extension_Bone_getIgnoreMovementBoneData(lua_State* L)
int argc = 0;
cocostudio::Bone* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ccs.Bone", 0, &tolua_err))
goto tolua_lerror;
@ -395,7 +395,7 @@ static int lua_axis_extension_Bone_getIgnoreMovementBoneData(lua_State* L)
self = static_cast<cocostudio::Bone*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_extension_Bone_getIgnoreMovementBoneData'\n", NULL);
@ -415,7 +415,7 @@ static int lua_axis_extension_Bone_getIgnoreMovementBoneData(lua_State* L)
argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'getIgnoreMovementBoneData'.", &tolua_err);
return 0;
@ -439,11 +439,11 @@ int lua_axis_studio_ActionTimelineCache_getInstance(lua_State* L)
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ccs.ActionTimelineCache", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -461,7 +461,7 @@ int lua_axis_studio_ActionTimelineCache_getInstance(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ActionTimelineCache:getInstance",
argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_studio_ActionTimelineCache_getInstance'.", &tolua_err);
#endif
@ -487,7 +487,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L)
int argc = 0;
cocostudio::timeline::ActionTimeline* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ccs.ActionTimeline", 0, &tolua_err))
goto tolua_lerror;
@ -495,7 +495,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L)
self = static_cast<cocostudio::timeline::ActionTimeline*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_ActionTimeline_setFrameEventCallFunc'\n", NULL);
@ -506,7 +506,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -528,7 +528,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L)
L, "'setFrameEventCallFunc' function of ActionTimeline has wrong number of arguments: %d, was expecting %d\n",
argc, 1);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'setFrameEventCallFunc'.", &tolua_err);
#endif
@ -550,11 +550,11 @@ int lua_axis_CustomGUIReader_create(lua_State* L)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ccs.CustomGUIReader", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -571,14 +571,14 @@ int lua_axis_CustomGUIReader_create(lua_State* L)
{
break;
}
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
}
#endif
LUA_FUNCTION arg1 = toluafix_ref_function(L, 3, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 4, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -593,7 +593,7 @@ int lua_axis_CustomGUIReader_create(lua_State* L)
} while (0);
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d", "ccs.CustomGUIReader:create", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_CustomGUIReader_create'.", &tolua_err);
#endif

View File

@ -36,11 +36,11 @@ int lua_axis_csloader_CSLoader_createTimeline(lua_State* tolua_S)
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.CSLoader", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -61,7 +61,7 @@ int lua_axis_csloader_CSLoader_createTimeline(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CSLoader:createTimeline", argc,
1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_CSLoader_createTimeline'.", &tolua_err);
#endif
@ -72,11 +72,11 @@ int lua_axis_csloader_CSLoader_createNode(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.CSLoader", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -94,7 +94,7 @@ int lua_axis_csloader_CSLoader_createNode(lua_State* tolua_S)
break;
}
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -135,7 +135,7 @@ int lua_axis_csloader_CSLoader_createNode(lua_State* tolua_S)
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.CSLoader:createNode", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_csloader_CSLoader_createNode'.", &tolua_err);
#endif

View File

@ -100,14 +100,14 @@ static int tolua_axis_EventListenerController_clone(lua_State* tolua_S)
int argc = 0;
axis::EventListenerController* self = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerController", 0, &tolua_err))
goto tolua_lerror;
# endif
self = static_cast<axis::EventListenerController*>(tolua_tousertype(tolua_S, 1, 0));
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerController_clone'\n", nullptr);
@ -141,7 +141,7 @@ static int tolua_axis_EventListenerController_clone(lua_State* tolua_S)
AXLOG("'clone' has wrong number of arguments: %d, was expecting %d\n", argc, 0);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'clone'.", &tolua_err);
return 0;
@ -155,14 +155,14 @@ static int tolua_axis_EventListenerController_registerScriptHandler(lua_State* t
int argc = 0;
axis::EventListenerController* self = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerController", 0, &tolua_err))
goto tolua_lerror;
# endif
self = static_cast<axis::EventListenerController*>(tolua_tousertype(tolua_S, 1, 0));
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(tolua_S,
@ -175,7 +175,7 @@ static int tolua_axis_EventListenerController_registerScriptHandler(lua_State* t
if (argc == 2)
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) ||
!tolua_isnumber(tolua_S, 3, 0, &tolua_err))
{
@ -283,7 +283,7 @@ static int tolua_axis_EventListenerController_registerScriptHandler(lua_State* t
AXLOG("'registerScriptHandler' has wrong number of arguments: %d, was expecting %d\n", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'registerScriptHandler'.", &tolua_err);
return 0;
@ -309,14 +309,14 @@ static int tolua_axis_Controller_getKeyStatus(lua_State* tolua_S)
int argc = 0;
axis::Controller* self = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(tolua_S, 1, "ax.Controller", 0, &tolua_err))
goto tolua_lerror;
# endif
self = static_cast<axis::Controller*>(tolua_tousertype(tolua_S, 1, 0));
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_Controller_getKeyStatus'\n", nullptr);
@ -328,7 +328,7 @@ static int tolua_axis_Controller_getKeyStatus(lua_State* tolua_S)
if (argc == 1)
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isnumber(tolua_S, 2, 0, &tolua_err))
goto tolua_lerror;
# endif
@ -352,7 +352,7 @@ static int tolua_axis_Controller_getKeyStatus(lua_State* tolua_S)
AXLOG("'clone' has wrong number of arguments: %d, was expecting %d\n", argc, 0);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'getKeyStatus'.", &tolua_err);
return 0;

View File

@ -85,7 +85,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L)
int argc = 0;
AssetsManager* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.AssetsManager", 0, &tolua_err))
goto tolua_lerror;
@ -93,7 +93,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L)
self = (AssetsManager*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_AssetsManager_setDelegate'\n", nullptr);
@ -105,7 +105,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L)
if (2 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(L, 3, 0, &tolua_err))
{
goto tolua_lerror;
@ -132,7 +132,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.AssetsManager:setDelegate", argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_AssetsManager_setDelegate'.", &tolua_err);
return 0;
@ -164,7 +164,7 @@ static int lua_axis_Extension_EventListenerAssetsManagerEx_create(lua_State* L)
int argc = 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertable(L, 1, "ax.EventListenerAssetsManagerEx", 0, &tolua_err))
goto tolua_lerror;
@ -175,7 +175,7 @@ static int lua_axis_Extension_EventListenerAssetsManagerEx_create(lua_State* L)
if (argc == 2)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 2, "ax.AssetsManagerEx", 0, &tolua_err) ||
!toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err))
goto tolua_lerror;
@ -204,7 +204,7 @@ static int lua_axis_Extension_EventListenerAssetsManagerEx_create(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "create", argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_Extension_EventListenerAssetsManagerEx_create'.", &tolua_err);
return 0;
@ -228,18 +228,18 @@ int lua_axis_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S)
axis::ParticleSystem3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.ParticleSystem3D", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getParticlePool'",
@ -266,7 +266,7 @@ int lua_axis_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S)
"ax.ParticleSystem3D:getParticlePool", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_extension_ParticleSystem3D_getParticlePool'.", &tolua_err);
#endif
@ -291,18 +291,18 @@ int lua_axis_extension_ParticlePool_getActiveDataList(lua_State* tolua_S)
axis::ParticlePool* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.ParticlePool", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::ParticlePool*)tolua_tousertype(tolua_S, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_extension_ParticlePool_getActiveDataList'",
@ -345,7 +345,7 @@ int lua_axis_extension_ParticlePool_getActiveDataList(lua_State* tolua_S)
"ax.ParticlePool:getActiveParticleList", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_extension_ParticlePool_getActiveParticleList'.",
&tolua_err);

View File

@ -30,7 +30,7 @@
# include "scripting/lua-bindings/manual/LuaBasicConversions.h"
# include "navmesh/CCNavMeshAgent.h"
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
extern void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName);
# endif
@ -44,7 +44,7 @@ bool luaval_to_navmeshagentparam(lua_State* L, int lo, axis::NavMeshAgentParam*
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
# endif
ok = false;
@ -120,7 +120,7 @@ bool luaval_to_offmeshlinkdata(lua_State* L, int lo, axis::OffMeshLinkData* outV
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
# endif
ok = false;

View File

@ -38,18 +38,18 @@ int lua_axis_navmesh_NavMeshAgent_move(lua_State* tolua_S)
axis::NavMeshAgent* cobj = nullptr;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.NavMeshAgent", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_navmesh_NavMeshAgent_move'", nullptr);
@ -79,7 +79,7 @@ int lua_axis_navmesh_NavMeshAgent_move(lua_State* tolua_S)
ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.NavMeshAgent:move");
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -106,7 +106,7 @@ int lua_axis_navmesh_NavMeshAgent_move(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:move", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_navmesh_NavMeshAgent_move'.", &tolua_err);
# endif

View File

@ -298,7 +298,7 @@ static int lua_axis_XMLHttpRequest_constructor(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
@ -314,7 +314,7 @@ static int lua_axis_XMLHttpRequest_constructor(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "XMLHttpRequest", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_constructor'.", &tolua_err);
return 0;
@ -325,14 +325,14 @@ static int lua_get_XMLHttpRequest_responseType(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_responseType'\n", nullptr);
@ -343,7 +343,7 @@ static int lua_get_XMLHttpRequest_responseType(lua_State* L)
tolua_pushnumber(L, (lua_Number)self->getResponseType());
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_responseType'.", &tolua_err);
return 0;
@ -355,14 +355,14 @@ static int lua_set_XMLHttpRequest_responseType(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_set_XMLHttpRequest_responseType'\n", nullptr);
@ -374,7 +374,7 @@ static int lua_set_XMLHttpRequest_responseType(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isnumber(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -389,7 +389,7 @@ static int lua_set_XMLHttpRequest_responseType(lua_State* L)
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_set_XMLHttpRequest_responseType'.", &tolua_err);
return 0;
@ -400,14 +400,14 @@ static int lua_get_XMLHttpRequest_withCredentials(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_withCredentials'\n", nullptr);
@ -418,7 +418,7 @@ static int lua_get_XMLHttpRequest_withCredentials(lua_State* L)
tolua_pushboolean(L, self->getWithCredentialsValue());
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_withCredentials'.", &tolua_err);
return 0;
@ -430,14 +430,14 @@ static int lua_set_XMLHttpRequest_withCredentials(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_set_XMLHttpRequest_withCredentials'\n", nullptr);
@ -449,7 +449,7 @@ static int lua_set_XMLHttpRequest_withCredentials(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isboolean(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -461,7 +461,7 @@ static int lua_set_XMLHttpRequest_withCredentials(lua_State* L)
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_set_XMLHttpRequest_withCredentials'.", &tolua_err);
return 0;
@ -472,14 +472,14 @@ static int lua_get_XMLHttpRequest_timeout(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_timeout'\n", nullptr);
@ -490,7 +490,7 @@ static int lua_get_XMLHttpRequest_timeout(lua_State* L)
tolua_pushnumber(L, (lua_Number)self->getTimeout());
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_timeout'.", &tolua_err);
return 0;
@ -502,14 +502,14 @@ static int lua_set_XMLHttpRequest_timeout(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_set_XMLHttpRequest_timeout'\n", nullptr);
@ -521,7 +521,7 @@ static int lua_set_XMLHttpRequest_timeout(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isnumber(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -532,7 +532,7 @@ static int lua_set_XMLHttpRequest_timeout(lua_State* L)
luaL_error(L, "'setTimeout' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_set_XMLHttpRequest_timeout'.", &tolua_err);
return 0;
@ -543,14 +543,14 @@ static int lua_get_XMLHttpRequest_readyState(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_readyState'\n", nullptr);
@ -562,7 +562,7 @@ static int lua_get_XMLHttpRequest_readyState(lua_State* L)
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_readyState'.", &tolua_err);
return 0;
@ -573,14 +573,14 @@ static int lua_get_XMLHttpRequest_status(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_status'\n", nullptr);
@ -592,7 +592,7 @@ static int lua_get_XMLHttpRequest_status(lua_State* L)
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_status'.", &tolua_err);
return 0;
@ -603,14 +603,14 @@ static int lua_get_XMLHttpRequest_statusText(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_statusText'\n", nullptr);
@ -622,7 +622,7 @@ static int lua_get_XMLHttpRequest_statusText(lua_State* L)
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_statusText'.", &tolua_err);
return 0;
@ -633,14 +633,14 @@ static int lua_get_XMLHttpRequest_responseText(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_responseText'\n", nullptr);
@ -650,7 +650,7 @@ static int lua_get_XMLHttpRequest_responseText(lua_State* L)
lua_pushlstring(L, self->getData(), self->getDataSize());
return 1;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_responseText'.", &tolua_err);
return 0;
@ -661,14 +661,14 @@ static int lua_get_XMLHttpRequest_response(lua_State* L)
{
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_response'\n", nullptr);
@ -723,7 +723,7 @@ static int lua_get_XMLHttpRequest_response(lua_State* L)
return 1;
}
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_response'.", &tolua_err);
return 0;
@ -735,14 +735,14 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_open'\n", nullptr);
@ -754,7 +754,7 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L)
if (argc >= 2)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -764,7 +764,7 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L)
bool async = true;
if (argc > 2)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isboolean(L, 4, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -818,7 +818,7 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L)
luaL_error(L, "'open' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_open'.", &tolua_err);
return 0;
@ -833,14 +833,14 @@ static int lua_axis_XMLHttpRequest_send(lua_State* L)
const char* data = NULL;
size_t size = 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_send'\n", nullptr);
@ -854,7 +854,7 @@ static int lua_axis_XMLHttpRequest_send(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -874,7 +874,7 @@ static int lua_axis_XMLHttpRequest_send(lua_State* L)
self->_sendRequest();
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_send'.", &tolua_err);
return 0;
@ -889,14 +889,14 @@ static int lua_axis_XMLHttpRequest_abort(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_send'\n", nullptr);
@ -913,7 +913,7 @@ static int lua_axis_XMLHttpRequest_abort(lua_State* L)
}
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_send'.", &tolua_err);
return 0;
@ -925,14 +925,14 @@ static int lua_axis_XMLHttpRequest_setRequestHeader(lua_State* L)
int argc = 0;
LuaMinXmlHttpRequest* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_setRequestHeader'\n", nullptr);
@ -944,7 +944,7 @@ static int lua_axis_XMLHttpRequest_setRequestHeader(lua_State* L)
if (2 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -958,7 +958,7 @@ static int lua_axis_XMLHttpRequest_setRequestHeader(lua_State* L)
luaL_error(L, "'setRequestHeader' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n",
argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_setRequestHeader'.", &tolua_err);
return 0;
@ -973,14 +973,14 @@ static int lua_axis_XMLHttpRequest_getAllResponseHeaders(lua_State* L)
std::stringstream responseheaders;
std::string responseheader;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'\n", nullptr);
@ -1008,7 +1008,7 @@ static int lua_axis_XMLHttpRequest_getAllResponseHeaders(lua_State* L)
"'getAllResponseHeaders' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n",
argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'.", &tolua_err);
return 0;
@ -1022,14 +1022,14 @@ static int lua_axis_XMLHttpRequest_getResponseHeader(lua_State* L)
std::string responseheader;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'\n", nullptr);
@ -1041,7 +1041,7 @@ static int lua_axis_XMLHttpRequest_getResponseHeader(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -1063,7 +1063,7 @@ static int lua_axis_XMLHttpRequest_getResponseHeader(lua_State* L)
luaL_error(L, "'getResponseHeader' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n",
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'.", &tolua_err);
return 0;
@ -1077,14 +1077,14 @@ static int lua_axis_XMLHttpRequest_registerScriptHandler(lua_State* L)
std::string responseheader;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_registerScriptHandler'\n", nullptr);
@ -1096,7 +1096,7 @@ static int lua_axis_XMLHttpRequest_registerScriptHandler(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -1111,7 +1111,7 @@ static int lua_axis_XMLHttpRequest_registerScriptHandler(lua_State* L)
"'registerScriptHandler' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n",
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_registerScriptHandler'.", &tolua_err);
return 0;
@ -1125,14 +1125,14 @@ static int lua_axis_XMLHttpRequest_unregisterScriptHandler(lua_State* L)
std::string responseheader;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err))
goto tolua_lerror;
#endif
self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_unregisterScriptHandler'\n", nullptr);
@ -1154,7 +1154,7 @@ static int lua_axis_XMLHttpRequest_unregisterScriptHandler(lua_State* L)
"'unregisterScriptHandler' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n",
argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_unregisterScriptHandler'.", &tolua_err);
return 0;

View File

@ -50,18 +50,18 @@ int lua_axis_physics_PhysicsBody_getJoints(lua_State* tolua_S)
axis::PhysicsBody* cobj = nullptr;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsBody_getJoints'", NULL);
@ -102,7 +102,7 @@ int lua_axis_physics_PhysicsBody_getJoints(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getJoints", argc, 0);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_getJoints'.", &tolua_err);
# endif
@ -115,18 +115,18 @@ int lua_axis_physics_PhysicsWorld_getScene(lua_State* tolua_S)
int argc = 0;
axis::PhysicsWorld* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_getScene'", NULL);
@ -152,7 +152,7 @@ int lua_axis_physics_PhysicsWorld_getScene(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getScene", argc, 0);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_getScene'.", &tolua_err);
# endif
@ -166,18 +166,18 @@ int lua_axis_physics_PhysicsWorld_rayCast(lua_State* tolua_S)
axis::PhysicsWorld* cobj = nullptr;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_rayCast'", NULL);
@ -216,7 +216,7 @@ int lua_axis_physics_PhysicsWorld_rayCast(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "rayCast", argc, 4);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_rayCast'.", &tolua_err);
# endif
@ -229,18 +229,18 @@ int lua_axis_physics_PhysicsWorld_queryRect(lua_State* tolua_S)
axis::PhysicsWorld* cobj = nullptr;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_queryRect'", NULL);
@ -276,7 +276,7 @@ int lua_axis_physics_PhysicsWorld_queryRect(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "queryRect", argc, 3);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_queryRect'.", &tolua_err);
# endif
@ -290,18 +290,18 @@ int lua_axis_physics_PhysicsWorld_queryPoint(lua_State* tolua_S)
axis::PhysicsWorld* cobj = nullptr;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_queryPoint'", NULL);
@ -337,7 +337,7 @@ int lua_axis_physics_PhysicsWorld_queryPoint(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "queryPoint", argc, 3);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_queryPoint'.", &tolua_err);
# endif
@ -350,11 +350,11 @@ int lua_axis_physics_PhysicsBody_createPolygon(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -472,7 +472,7 @@ int lua_axis_physics_PhysicsBody_createPolygon(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "createPolygon", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_createPolygon'.", &tolua_err);
# endif
@ -484,11 +484,11 @@ int lua_axis_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -605,7 +605,7 @@ int lua_axis_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "createEdgePolygon", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_createEdgePolygon'.", &tolua_err);
# endif
@ -617,11 +617,11 @@ int lua_axis_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -738,7 +738,7 @@ int lua_axis_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "createEdgeChain", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_createEdgeChain'.", &tolua_err);
# endif
@ -750,11 +750,11 @@ int lua_axis_physics_PhysicsShape_recenterPoints(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShape", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -810,7 +810,7 @@ int lua_axis_physics_PhysicsShape_recenterPoints(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "recenterPoints", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShape_recenterPoints'.", &tolua_err);
# endif
@ -822,11 +822,11 @@ int lua_axis_physics_PhysicsShape_getPolygonCenter(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShape", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -857,7 +857,7 @@ int lua_axis_physics_PhysicsShape_getPolygonCenter(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "getPolygonCenter", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShape_getPolygonCenter'.", &tolua_err);
# endif
@ -869,18 +869,18 @@ int lua_axis_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S)
int argc = 0;
axis::PhysicsShapeBox* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeBox", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsShapeBox*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeBox_getPoints'", NULL);
@ -899,7 +899,7 @@ int lua_axis_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeBox_getPoints'.", &tolua_err);
# endif
@ -912,18 +912,18 @@ int lua_axis_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S)
int argc = 0;
axis::PhysicsShapePolygon* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsShapePolygon*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapePolygon_getPoints'", NULL);
@ -944,7 +944,7 @@ int lua_axis_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_getPoints'.", &tolua_err);
# endif
@ -957,11 +957,11 @@ int lua_axis_physics_PhysicsShapePolygon_create(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -1046,7 +1046,7 @@ int lua_axis_physics_PhysicsShapePolygon_create(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_create'.", &tolua_err);
# endif
@ -1057,11 +1057,11 @@ int lua_axis_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -1092,7 +1092,7 @@ int lua_axis_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "calculateArea", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_calculateArea'.", &tolua_err);
# endif
@ -1103,11 +1103,11 @@ int lua_axis_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -1166,7 +1166,7 @@ int lua_axis_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "calculateMoment", argc, 3);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_calculateMoment'.", &tolua_err);
# endif
@ -1178,18 +1178,18 @@ int lua_axis_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S)
int argc = 0;
axis::PhysicsShapeEdgeBox* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeEdgeBox", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsShapeEdgeBox*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeEdgeBox_getPoints'", NULL);
@ -1210,7 +1210,7 @@ int lua_axis_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgeBox_getPoints'.", &tolua_err);
# endif
@ -1223,18 +1223,18 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S)
int argc = 0;
axis::PhysicsShapeEdgePolygon* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeEdgePolygon", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsShapeEdgePolygon*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeEdgePolygon_getPoints'",
@ -1256,7 +1256,7 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgePolygon_getPoints'.", &tolua_err);
# endif
@ -1269,18 +1269,18 @@ int lua_axis_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S)
int argc = 0;
axis::PhysicsShapeEdgeChain* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeEdgeChain", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::PhysicsShapeEdgeChain*)tolua_tousertype(tolua_S, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeEdgeChain_getPoints'", NULL);
@ -1301,7 +1301,7 @@ int lua_axis_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgeChain_getPoints'.", &tolua_err);
# endif
@ -1316,14 +1316,14 @@ static int tolua_axis_EventListenerPhysicsContact_registerScriptHandler(lua_Stat
int argc = 0;
EventListenerPhysicsContact* self = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerPhysicsContact", 0, &tolua_err))
goto tolua_lerror;
# endif
self = static_cast<EventListenerPhysicsContact*>(tolua_tousertype(tolua_S, 1, 0));
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(tolua_S,
@ -1336,7 +1336,7 @@ static int tolua_axis_EventListenerPhysicsContact_registerScriptHandler(lua_Stat
if (argc == 2)
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) ||
!tolua_isnumber(tolua_S, 3, 0, &tolua_err))
{
@ -1412,7 +1412,7 @@ static int tolua_axis_EventListenerPhysicsContact_registerScriptHandler(lua_Stat
luaL_error(tolua_S, "'registerScriptHandler' has wrong number of arguments: %d, was expecting %d\n", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'registerScriptHandler'.", &tolua_err);
return 0;
@ -1424,11 +1424,11 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapeEdgePolygon", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -1512,7 +1512,7 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgePolygon_create'.", &tolua_err);
# endif
@ -1524,11 +1524,11 @@ int lua_axis_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapeEdgeChain", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -1612,7 +1612,7 @@ int lua_axis_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S)
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgeChain_create'.", &tolua_err);
# endif

View File

@ -45,7 +45,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L,
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
# endif
ok = false;
@ -115,7 +115,7 @@ bool luaval_to_Physics3DWorld_HitResult(lua_State* L,
tolua_Error tolua_err;
if (!tolua_istable(L, lo, 0, &tolua_err))
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, funcName);
# endif
ok = false;
@ -191,11 +191,11 @@ int lua_axis_physics3d_PhysicsMeshRenderer_create(lua_State* L)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.PhysicsMeshRenderer", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -255,7 +255,7 @@ int lua_axis_physics3d_PhysicsMeshRenderer_create(lua_State* L)
}
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.PhysicsMeshRenderer:create", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_PhysicsMeshRenderer_create'.", &tolua_err);
# endif
@ -278,11 +278,11 @@ int lua_axis_physics3d_Physics3DRigidBody_create(lua_State* L)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.Physics3DRigidBody", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -304,7 +304,7 @@ int lua_axis_physics3d_Physics3DRigidBody_create(lua_State* L)
}
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DRigidBody:create", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DRigidBody_create'.", &tolua_err);
# endif
@ -326,11 +326,11 @@ int lua_axis_physics3d_Physics3DComponent_create(lua_State* L)
{
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.Physics3DComponent", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -419,7 +419,7 @@ int lua_axis_physics3d_Physics3DComponent_create(lua_State* L)
ok = true;
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d", "ax.Physics3DComponent:create", argc, 0);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DComponent_create'.", &tolua_err);
# endif
@ -443,18 +443,18 @@ int lua_axis_physics3d_Physics3DWorld_rayCast(lua_State* L)
axis::Physics3DWorld* cobj = nullptr;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.Physics3DWorld", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::Physics3DWorld*)tolua_tousertype(L, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_axis_physics3d_Physics3DWorld_rayCast'", nullptr);
@ -488,7 +488,7 @@ int lua_axis_physics3d_Physics3DWorld_rayCast(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:rayCast", argc, 3);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DWorld_rayCast'.", &tolua_err);
# endif
@ -512,11 +512,11 @@ int lua_axis_physics3d_Physics3DShape_createMesh(lua_State* L)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.Physics3DShape", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -540,7 +540,7 @@ int lua_axis_physics3d_Physics3DShape_createMesh(lua_State* L)
}
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createMesh", argc, 2);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DShape_createMesh'.", &tolua_err);
# endif
@ -552,11 +552,11 @@ int lua_axis_physics3d_Physics3DShape_createHeightfield(lua_State* L)
int argc = 0;
bool ok = true;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.Physics3DShape", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -626,7 +626,7 @@ int lua_axis_physics3d_Physics3DShape_createHeightfield(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createHeightfield",
argc, 8);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DShape_createHeightfield'.", &tolua_err);
# endif
@ -640,7 +640,7 @@ int lua_axis_physics3d_Physics3DShape_createCompoundShape(lua_State* L)
tolua_Error tolua_err;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.Physics3DShape", 0, &tolua_err))
goto tolua_lerror;
# endif
@ -653,7 +653,7 @@ int lua_axis_physics3d_Physics3DShape_createCompoundShape(lua_State* L)
std::vector<std::pair<axis::Physics3DShape*, axis::Mat4>> shapes;
if (!tolua_istable(L, 2, 0, &tolua_err))
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
luaval_to_native_err(L, "#ferror:", &tolua_err, "ax.Physics3DShape:createCompoundShape");
# endif
ok = false;
@ -693,7 +693,7 @@ int lua_axis_physics3d_Physics3DShape_createCompoundShape(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createCompoundShape",
argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DShape_createCompoundShape'.", &tolua_err);
# endif
@ -741,18 +741,18 @@ int lua_axis_physics3d_Physics3DObject_setCollisionCallback(lua_State* L)
int argc = 0;
axis::Physics3DObject* cobj = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
# endif
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.Physics3DObject", 0, &tolua_err))
goto tolua_lerror;
# endif
cobj = (axis::Physics3DObject*)tolua_tousertype(L, 1, 0);
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_axis_physics3d_Physics3DObject_setCollisionCallback'",
@ -764,7 +764,7 @@ int lua_axis_physics3d_Physics3DObject_setCollisionCallback(lua_State* L)
argc = lua_gettop(L) - 1;
if (argc == 1)
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -823,7 +823,7 @@ int lua_axis_physics3d_Physics3DObject_setCollisionCallback(lua_State* L)
"ax.Physics3DObject:setCollisionCallback", argc, 1);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DObject_setCollisionCallback'.", &tolua_err);
# endif

View File

@ -43,7 +43,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L)
int argc = 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertable(L, 1, "sp.SkeletonAnimation", 0, &tolua_err))
goto tolua_lerror;
@ -53,7 +53,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L)
if (2 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err))
{
goto tolua_lerror;
@ -71,7 +71,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L)
}
else if (3 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err) ||
!tolua_isnumber(L, 4, 0, &tolua_err))
{
@ -94,7 +94,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L)
"'createWithFile' function of SkeletonAnimation has wrong number of arguments: %d, was expecting %d\n",
argc, 2);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'createWithFile'.", &tolua_err);
#endif
@ -330,18 +330,18 @@ static int lua_axis_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S)
spine::SkeletonAnimation* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "sp.SkeletonAnimation", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_spine_SkeletonAnimation_addAnimation'", nullptr);
@ -397,7 +397,7 @@ static int lua_axis_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "addAnimation", argc, 3);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_spine_SkeletonAnimation_addAnimation'.", &tolua_err);
#endif
@ -411,18 +411,18 @@ static int lua_axis_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S)
spine::SkeletonAnimation* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S, 1, "sp.SkeletonAnimation", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_spine_SkeletonAnimation_setAnimation'", nullptr);
@ -455,7 +455,7 @@ static int lua_axis_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "setAnimation", argc, 3);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S, "#ferror in function 'lua_axis_spine_SkeletonAnimation_setAnimation'.", &tolua_err);
#endif

View File

@ -71,7 +71,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L)
int argc = 0;
Widget* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.Widget", 0, &tolua_err))
goto tolua_lerror;
@ -79,7 +79,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L)
self = static_cast<Widget*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_Widget_addTouchEventListener'\n", NULL);
@ -91,7 +91,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -111,7 +111,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L)
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addTouchEventListener'.", &tolua_err);
return 0;
@ -126,7 +126,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L)
int argc = 0;
Widget* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.Widget", 0, &tolua_err))
goto tolua_lerror;
@ -134,7 +134,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L)
self = static_cast<Widget*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_Widget_addClickEventListener'\n", NULL);
@ -146,7 +146,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -170,7 +170,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L)
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addClickEventListener'.", &tolua_err);
return 0;
@ -197,7 +197,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L)
int argc = 0;
CheckBox* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.CheckBox", 0, &tolua_err))
goto tolua_lerror;
@ -205,7 +205,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L)
self = static_cast<CheckBox*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_CheckBox_addEventListener'\n", NULL);
@ -215,7 +215,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -234,7 +234,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L)
1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -260,7 +260,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L)
int argc = 0;
RadioButton* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.RadioButton", 0, &tolua_err))
goto tolua_lerror;
@ -268,7 +268,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L)
self = static_cast<RadioButton*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_RadioButton_addEventListener'\n", NULL);
@ -278,7 +278,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -303,7 +303,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L)
1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -329,7 +329,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L)
int argc = 0;
RadioButtonGroup* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.RadioButtonGroup", 0, &tolua_err))
goto tolua_lerror;
@ -337,7 +337,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L)
self = static_cast<RadioButtonGroup*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_RadioButtonGroup_addEventListener'\n", NULL);
@ -347,7 +347,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -375,7 +375,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L)
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -401,7 +401,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L)
int argc = 0;
Slider* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.Slider", 0, &tolua_err))
goto tolua_lerror;
@ -409,7 +409,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L)
self = static_cast<Slider*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_Slider_addEventListener'\n", NULL);
@ -419,7 +419,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -439,7 +439,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -465,7 +465,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L)
int argc = 0;
TextField* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.TextField", 0, &tolua_err))
goto tolua_lerror;
@ -473,7 +473,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L)
self = static_cast<TextField*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_TextField_addEventListener'\n", NULL);
@ -483,7 +483,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -503,7 +503,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -529,7 +529,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L)
int argc = 0;
PageView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.PageView", 0, &tolua_err))
goto tolua_lerror;
@ -537,7 +537,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L)
self = static_cast<PageView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_PageView_addEventListener'\n", NULL);
@ -547,7 +547,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -568,7 +568,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -594,7 +594,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L)
int argc = 0;
ScrollView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.ScrollView", 0, &tolua_err))
goto tolua_lerror;
@ -602,7 +602,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L)
self = static_cast<ScrollView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_ScrollView_addEventListener'\n", NULL);
@ -612,7 +612,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -632,7 +632,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -658,7 +658,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L)
int argc = 0;
ListView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.ListView", 0, &tolua_err))
goto tolua_lerror;
@ -666,7 +666,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L)
self = static_cast<ListView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_ListView_addEventListener'\n", NULL);
@ -676,7 +676,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -698,7 +698,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err);
return 0;
@ -713,7 +713,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L)
int argc = 0;
ListView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.ListView", 0, &tolua_err))
goto tolua_lerror;
@ -721,7 +721,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L)
self = static_cast<ListView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_ListView_addScrollViewEventListener'\n", NULL);
@ -731,7 +731,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L)
argc = lua_gettop(L) - 1;
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -754,7 +754,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addScrollViewEventListener'.", &tolua_err);
return 0;
@ -781,7 +781,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L)
int argc = 0;
LayoutParameter* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.LayoutParameter", 0, &tolua_err))
goto tolua_lerror;
@ -789,7 +789,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L)
self = static_cast<LayoutParameter*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_LayoutParameter_setMargin'\n", NULL);
@ -800,7 +800,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_istable(L, 2, 0, &tolua_err))
{
goto tolua_lerror;
@ -837,7 +837,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'setMargin'.", &tolua_err);
return 0;
@ -852,7 +852,7 @@ static int lua_axis_LayoutParameter_getMargin(lua_State* L)
int argc = 0;
LayoutParameter* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.LayoutParameter", 0, &tolua_err))
goto tolua_lerror;
@ -860,7 +860,7 @@ static int lua_axis_LayoutParameter_getMargin(lua_State* L)
self = static_cast<LayoutParameter*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_LayoutParameter_getMargin'\n", NULL);
@ -899,7 +899,7 @@ static int lua_axis_LayoutParameter_getMargin(lua_State* L)
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'getMargin'.", &tolua_err);
return 0;
@ -926,7 +926,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L)
int argc = 0;
EditBox* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.EditBox", 0, &tolua_err))
goto tolua_lerror;
@ -934,7 +934,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L)
self = static_cast<EditBox*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'tolua_cocos2d_EditBox_registerScriptEditBoxHandler'\n", NULL);
@ -946,7 +946,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L)
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -961,7 +961,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L)
"axui.EditBox:registerScriptEditBoxHandler", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'tolua_cocos2d_EditBox_registerScriptEditBoxHandler'.", &tolua_err);
return 0;
@ -977,7 +977,7 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* L)
int argc = 0;
EditBox* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.EditBox", 0, &tolua_err))
goto tolua_lerror;
@ -985,7 +985,7 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* L)
self = static_cast<EditBox*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler'\n", NULL);
@ -1005,7 +1005,7 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* L)
"axui.EditBox:unregisterScriptEditBoxHandler", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler'.", &tolua_err);
return 0;
@ -1053,7 +1053,7 @@ static int tolua_axis_EventListenerFocus_create(lua_State* L)
return 0;
int argc = 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertable(L, 1, "ax.EventListenerFocus", 0, &tolua_err))
goto tolua_lerror;
@ -1077,7 +1077,7 @@ static int tolua_axis_EventListenerFocus_create(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.EventListenerFocus:create", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'tolua_axis_EventListenerFocus_create'.", &tolua_err);
return 0;
@ -1119,14 +1119,14 @@ static int tolua_axis_EventListenerFocus_clone(lua_State* L)
int argc = 0;
EventListenerFocus* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.EventListenerFocus", 0, &tolua_err))
goto tolua_lerror;
#endif
self = static_cast<EventListenerFocus*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'tolua_axis_EventListenerFocus_clone'\n", nullptr);
@ -1154,7 +1154,7 @@ static int tolua_axis_EventListenerFocus_clone(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.EventListenerFocus:clone", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'tolua_axis_EventListenerFocus_clone'.", &tolua_err);
return 0;
@ -1168,14 +1168,14 @@ static int tolua_axis_EventListenerFocus_registerScriptHandler(lua_State* L)
int argc = 0;
EventListenerFocus* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "ax.EventListenerFocus", 0, &tolua_err))
goto tolua_lerror;
#endif
self = static_cast<EventListenerFocus*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'tolua_axis_EventListenerFocus_registerScriptHandler'\n",
@ -1187,7 +1187,7 @@ static int tolua_axis_EventListenerFocus_registerScriptHandler(lua_State* L)
if (argc == 1)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -1216,7 +1216,7 @@ static int tolua_axis_EventListenerFocus_registerScriptHandler(lua_State* L)
"ax.EventListenerFocus:registerScriptHandler", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'tolua_axis_EventListenerFocus_registerScriptHandler'.", &tolua_err);
return 0;

View File

@ -36,7 +36,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L)
int argc = 0;
axis::ui::VideoPlayer* self = nullptr;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.VideoPlayer", 0, &tolua_err))
goto tolua_lerror;
@ -44,7 +44,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L)
self = static_cast<axis::ui::VideoPlayer*>(tolua_tousertype(L, 1, 0));
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_Widget_addTouchEventListener'\n", nullptr);
@ -56,7 +56,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L)
if (argc == 1)
{
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -79,7 +79,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.VideoPlayer:addEventListener",
argc, 0);
return 0;
# if COCOS2D_DEBUG >= 1
# if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_VideoPlayer_addEventListener'.", &tolua_err);
# endif

View File

@ -35,7 +35,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L)
int argc = 0;
axis::ui::WebView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.WebView", 0, &tolua_err))
goto tolua_lerror;
@ -43,7 +43,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L)
self = static_cast<axis::ui::WebView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_WebView_setOnShouldStartLoading'\n", nullptr);
@ -55,7 +55,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L)
if (argc == 1)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -78,7 +78,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.WebView:setOnShouldStartLoading",
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_WebView_setOnShouldStartLoading'.", &tolua_err);
#endif
@ -91,7 +91,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L)
int argc = 0;
axis::ui::WebView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.WebView", 0, &tolua_err))
goto tolua_lerror;
@ -99,7 +99,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L)
self = static_cast<axis::ui::WebView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_WebView_setOnDidFinishLoading'\n", nullptr);
@ -111,7 +111,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L)
if (argc == 1)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -133,7 +133,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.WebView:setOnDidFinishLoading",
argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_WebView_setOnDidFinishLoading'.", &tolua_err);
#endif
@ -146,7 +146,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L)
int argc = 0;
axis::ui::WebView* self = nullptr;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(L, 1, "axui.WebView", 0, &tolua_err))
goto tolua_lerror;
@ -154,7 +154,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L)
self = static_cast<axis::ui::WebView*>(tolua_tousertype(L, 1, 0));
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (nullptr == self)
{
tolua_error(L, "invalid 'self' in function 'lua_axis_WebView_setOnDidFailLoading'\n", nullptr);
@ -166,7 +166,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L)
if (argc == 1)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err))
{
goto tolua_lerror;
@ -188,7 +188,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L)
luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.WebView:setOnDidFailLoading", argc,
1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_axis_WebView_setOnDidFailLoading'.", &tolua_err);
#endif

View File

@ -36,9 +36,9 @@ USING_NS_AX;
// Enable log on Debug version
#ifndef NDEBUG
# define COCOS2D_DEBUG 1
# define AXIS_DEBUG 1
#else
# define COCOS2D_DEBUG 0
# define AXIS_DEBUG 0
#endif
AppDelegate::AppDelegate() : _testController(nullptr) {}

View File

@ -512,7 +512,7 @@ void ScrollViewDemo::onTouchesEnded(const std::vector<Touch*>& touches, Event* e
// RawStencilBufferTests
//#if COCOS2D_DEBUG > 1
//#if AXIS_DEBUG > 1
static const float _alphaThreshold = 0.05f;
@ -809,7 +809,7 @@ void RawStencilBufferTest6::setupStencilForDrawingOnPlane(int plane)
RawStencilBufferTest::setupStencilForDrawingOnPlane(plane);
}
//#endif // COCOS2D_DEBUG > 1
//#endif // AXIS_DEBUG > 1
// ClippingToRenderTextureTest

View File

@ -168,7 +168,7 @@ private:
axis::Vec2 _lastPoint;
};
//#if COCOS2D_DEBUG > 1
//#if AXIS_DEBUG > 1
class RawStencilBufferTest : public BaseClippingNodeTest
{
@ -261,7 +261,7 @@ public:
virtual std::string subtitle() const override;
};
//#endif //COCOS2D_DEBUG > 1
//#endif //AXIS_DEBUG > 1
class ClippingToRenderTextureTest : public BaseClippingNodeTest
{

View File

@ -1571,7 +1571,7 @@ private:
DanglingNodePointersTest::DanglingNodePointersTest()
{
#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && COCOS2D_DEBUG > 0
#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && AXIS_DEBUG > 0
Vec2 origin = Director::getInstance()->getVisibleOrigin();
Size size = Director::getInstance()->getVisibleSize();
@ -1619,11 +1619,11 @@ std::string DanglingNodePointersTest::title() const
std::string DanglingNodePointersTest::subtitle() const
{
#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && COCOS2D_DEBUG > 0
#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && AXIS_DEBUG > 0
return "Tap the square - should not crash!";
#else
return "For test to work, must be compiled with:\n"
"AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1\n&& COCOS2D_DEBUG > 0";
"AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1\n&& AXIS_DEBUG > 0";
#endif
}

View File

@ -573,7 +573,7 @@ std::string SpriteCreation::title() const
std::string SpriteCreation::subtitle() const
{
#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG == 1
#if defined(AXIS_DEBUG) && AXIS_DEBUG == 1
return "In debug mode";
#else
return "In release mode";
@ -1068,7 +1068,7 @@ std::string NonBatchSprites::title() const
std::string NonBatchSprites::subtitle() const
{
#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG == 1
#if defined(AXIS_DEBUG) && AXIS_DEBUG == 1
return "DEBUG: simulate lots of sprites, drop to 30 fps";
#else
return "RELEASE: simulate lots of sprites, drop to 30 fps";

View File

@ -72,7 +72,7 @@ SpineTests::SpineTests()
ADD_TEST_CASE(SpineboyExample);
ADD_TEST_CASE(TankExample);
#ifdef COCOS2D_DEBUG
#ifdef AXIS_DEBUG
debugExtension = new DebugExtension(SpineExtension::getInstance());
#endif
}
@ -82,7 +82,7 @@ SpineTests::~SpineTests()
FileUtils::getInstance()->setSearchPaths(_searchPaths);
SkeletonBatch::destroyInstance();
SkeletonTwoColorBatch::destroyInstance();
#ifdef COCOS2D_DEBUG
#ifdef AXIS_DEBUG
debugExtension->reportLeaks();
delete debugExtension;
#endif

View File

@ -30,7 +30,7 @@
#include "../BaseTest.h"
#include <spine/spine-cocos2dx.h>
#ifdef COCOS2D_DEBUG
#ifdef AXIS_DEBUG
# include <spine/Debug.h>
#endif
@ -45,7 +45,7 @@ public:
private:
std::vector<std::string> _searchPaths;
#ifdef COCOS2D_DEBUG
#ifdef AXIS_DEBUG
spine::DebugExtension* debugExtension = nullptr;
#endif
};

View File

@ -78,13 +78,13 @@ static int lua_cocos2dx_deleteDownloadDir(lua_State* L)
int argc = lua_gettop(L);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
if (1 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 1, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -103,7 +103,7 @@ static int lua_cocos2dx_deleteDownloadDir(lua_State* L)
AXLOG("'resetDownloadDir' function wrong number of arguments: %d, was expecting %d\n", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'resetDownloadDir'.", &tolua_err);
return 0;
@ -117,13 +117,13 @@ static int lua_cocos2dx_addSearchPath(lua_State* L)
int argc = lua_gettop(L);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
if (2 == argc)
{
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isstring(L, 1, 0, &tolua_err) || !tolua_isboolean(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -135,7 +135,7 @@ static int lua_cocos2dx_addSearchPath(lua_State* L)
AXLOG("'addSearchPath' function wrong number of arguments: %d, was expecting %d\n", argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'addSearchPath'.", &tolua_err);
return 0;

View File

@ -337,18 +337,18 @@ int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L)
axis::DrawNode3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_getBlendFunc'", nullptr);
@ -368,7 +368,7 @@ int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L)
AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:getBlendFunc", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_getBlendFunc'.", &tolua_err);
#endif
@ -382,18 +382,18 @@ int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L)
axis::DrawNode3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'", nullptr);
@ -419,7 +419,7 @@ int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L)
AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:setBlendFunc", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'.", &tolua_err);
#endif
@ -433,18 +433,18 @@ int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L)
axis::DrawNode3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_drawLine'", nullptr);
@ -472,7 +472,7 @@ int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L)
AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:drawLine", argc, 3);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_drawLine'.", &tolua_err);
#endif
@ -486,18 +486,18 @@ int lua_cocos2dx_DrawNode3D_clear(lua_State* L)
axis::DrawNode3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_clear'", nullptr);
@ -516,7 +516,7 @@ int lua_cocos2dx_DrawNode3D_clear(lua_State* L)
AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:clear", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_clear'.", &tolua_err);
#endif
@ -530,18 +530,18 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
axis::DrawNode3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err))
goto tolua_lerror;
#endif
cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_drawCube'", nullptr);
@ -555,7 +555,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
std::vector<axis::Vec3> arg0;
axis::Color4F arg1;
Vec3 vec3;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_istable(L, 2, 0, &tolua_err))
goto tolua_lerror;
#endif
@ -564,7 +564,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
{
lua_pushnumber(L, i + 1);
lua_gettable(L, 2);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_istable(L, -1, 0, &tolua_err))
{
lua_pop(L, 1);
@ -573,7 +573,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
#endif
ok &= luaval_to_vec3(L, lua_gettop(L), &vec3);
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!ok)
{
lua_pop(L, 1);
@ -594,7 +594,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L)
AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:drawCube", argc, 2);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_drawCube'.", &tolua_err);
#endif
@ -607,11 +607,11 @@ int lua_cocos2dx_DrawNode3D_create(lua_State* L)
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.DrawNode3D", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -628,7 +628,7 @@ int lua_cocos2dx_DrawNode3D_create(lua_State* L)
}
AXLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ax.DrawNode3D:create", argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_create'.", &tolua_err);
#endif
@ -658,11 +658,11 @@ int lua_cocos2dx_ValueTypeJudgeInTable_create(lua_State* L)
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
if (!tolua_isusertable(L, 1, "ax.ValueTypeJudgeInTable", 0, &tolua_err))
goto tolua_lerror;
#endif
@ -682,7 +682,7 @@ int lua_cocos2dx_ValueTypeJudgeInTable_create(lua_State* L)
}
AXLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ValueTypeJudgeInTable:create", argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(L, "#ferror in function 'lua_cocos2dx_ValueTypeJudgeInTable_create'.", &tolua_err);
#endif

View File

@ -5,19 +5,19 @@ int ${signature_name}(lua_State* tolua_S)
${namespaced_class_name}* cobj = nullptr;
bool ok = true;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
\#endif
#if not $is_constructor
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror;
\#endif
cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0);
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}'", nullptr);
@ -113,7 +113,7 @@ int ${signature_name}(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func_name}",argc, ${min_args});
return 0;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
#if not $is_constructor
tolua_lerror:
#end if

View File

@ -4,16 +4,16 @@ int ${signature_name}(lua_State* tolua_S)
int argc = 0;
${namespaced_class_name}* cobj = nullptr;
bool ok = true;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
\#endif
#if not $is_constructor
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror;
\#endif
cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0);
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}'", nullptr);
@ -105,7 +105,7 @@ int ${signature_name}(lua_State* tolua_S)
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func.func_name}",argc, ${func.min_args});
return 0;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
#if not $is_constructor
tolua_lerror:
#end if

View File

@ -2,14 +2,14 @@
int ${signature_name}_get${name}(lua_State* tolua_S)
{
${namespaced_class_name}* cobj = nullptr;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror;
\#endif
cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0);
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}_get${name}'", nullptr);
@ -36,7 +36,7 @@ int ${signature_name}_get${name}(lua_State* tolua_S)
#end if
return 1;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function '${signature_name}_get${name}'.",&tolua_err);
return 0;
@ -49,14 +49,14 @@ int ${signature_name}_set${name}(lua_State* tolua_S)
${namespaced_class_name}* cobj = nullptr;
bool ok = true;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror;
\#endif
cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0);
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}_set${name}'", nullptr);
@ -92,7 +92,7 @@ int ${signature_name}_set${name}(lua_State* tolua_S)
AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${name}",argc, 1);
return 0;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function '${signature_name}_get${name}'.",&tolua_err);
return 0;

View File

@ -12,7 +12,7 @@ static int lua_${generator.prefix}_${current_class.class_name}_finalize(lua_Stat
{
printf("luabindings: finalizing LUA object (${current_class.class_name})");
#if $generator.script_control_cpp
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
if (
!tolua_isusertype(tolua_S,1,"${current_class.class_name}",0,&tolua_err) ||
@ -23,13 +23,13 @@ static int lua_${generator.prefix}_${current_class.class_name}_finalize(lua_Stat
\#endif
{
${current_class.namespaced_class_name}* self = (${current_class.namespaced_class_name}*) tolua_tousertype(tolua_S,1,0);
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", nullptr);
\#endif
delete self;
}
return 0;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
return 0;

View File

@ -4,11 +4,11 @@ int ${signature_name}(lua_State* tolua_S)
int argc = 0;
bool ok = true;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
\#endif
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror;
\#endif
@ -79,7 +79,7 @@ int ${signature_name}(lua_State* tolua_S)
#end if
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func_name}",argc, ${min_args});
return 0;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function '${signature_name}'.",&tolua_err);
\#endif

View File

@ -3,11 +3,11 @@ int ${signature_name}(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_Error tolua_err;
\#endif
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name,$namespace_name)}",0,&tolua_err)) goto tolua_lerror;
\#endif
@ -75,7 +75,7 @@ int ${signature_name}(lua_State* tolua_S)
#end for
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func.func_name}",argc, ${func.min_args});
return 0;
\#if COCOS2D_DEBUG >= 1
\#if AXIS_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function '${signature_name}'.",&tolua_err);
\#endif

View File

@ -161,13 +161,13 @@ class SimulatorCompiler(axis.CCPlugin):
def get_keywords(self):
osx_keyword = {
"AX_TARGET_OS_IPHONE,":"AX_TARGET_OS_IPHONE,\n\"COCOS2D_DEBUG=1\",",
"AX_TARGET_OS_MAC,":"AX_TARGET_OS_MAC,\n\"COCOS2D_DEBUG=1\",",
"COCOS2D_DEBUG=0":"COCOS2D_DEBUG=1",
"AX_TARGET_OS_IPHONE,":"AX_TARGET_OS_IPHONE,\n\"AXIS_DEBUG=1\",",
"AX_TARGET_OS_MAC,":"AX_TARGET_OS_MAC,\n\"AXIS_DEBUG=1\",",
"AXIS_DEBUG=0":"AXIS_DEBUG=1",
}
win_keyword = {
"_WINDOWS":"_WINDOWS;COCOS2D_DEBUG=1",
"_WINDOWS":"_WINDOWS;AXIS_DEBUG=1",
}
if axis.os_is_mac():

View File

@ -199,7 +199,7 @@ class TemplateModifier(object):
file_content = f.read()
f.close()
file_content = file_content.replace("#ifndef _DEBUG", "#ifndef COCOS2D_DEBUG")
file_content = file_content.replace("#ifndef _DEBUG", "#ifndef AXIS_DEBUG")
f = open(cpp_path, "w")
f.write(file_content)
f.close()