Made CC_CONSTRUCTOR_ACCESS public only when script binding is enabled

This commit is contained in:
pandamicro 2015-10-21 16:05:31 +08:00
parent 7466c4c71e
commit 558ac3cfa0
1 changed files with 5 additions and 1 deletions

View File

@ -335,7 +335,11 @@ THE SOFTWARE.
* protected by default.
*/
#ifndef CC_CONSTRUCTOR_ACCESS
#define CC_CONSTRUCTOR_ACCESS public
#ifdef CC_ENABLE_SCRIPT_BINDING
#define CC_CONSTRUCTOR_ACCESS public
#else
#define CC_CONSTRUCTOR_ACCESS protected
#endif
#endif
/** @def CC_ENABLE_ALLOCATOR