I got three problems working with tolua**.exe to disclose my class to lua:
- If I have two member functions with the same name, the “older” one will be overridden by the “newer” one.
e.g. If I have both void create and void create, the prior one will be never called through lua since:
@
tolua_function;
tolua_function;
@ - The disable macro is not functional since functions are still listed as in above code.
It should be:
@
#ifndef TOLUA_DISABLE_tolua_myclass_myclass_create00
tolua_function;
#endif
#ifndef TOLUA_DISABLE_tolua_myclass_myclass_create01
tolua_function;
#endif
@ - I cannot use default parameters like CCSizeZero in functions since:
@
CCSize size= * tolua_tousertype&CCSizeZero));
@
This will rise a semantic issue under some compilers, fatally in XCode.
Is there anywhere I can get the source code of tolua**.exe which comes with cocos2d-x?