mirror of https://github.com/axmolengine/axmol.git
Made CC_CONSTRUCTOR_ACCESS public only when script binding is enabled
This commit is contained in:
parent
7466c4c71e
commit
558ac3cfa0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue