new assert() added on unsupported platforms for CCLabelTTF and CCTexture2D

This commit is contained in:
carlo morgantini 2013-05-01 17:32:16 -07:00
parent 74441203cb
commit 9ba489bba4
2 changed files with 6 additions and 12 deletions

View File

@ -386,8 +386,7 @@ void CCLabelTTF::enableShadow(CCSize &shadowOffset, float shadowOpacity, float s
} }
#else #else
// carloX CCAssert(false, "Currently only supported on iOS and Android!");
// not implemented throw exception
#endif #endif
} }
@ -403,8 +402,7 @@ void CCLabelTTF::disableShadow()
} }
#else #else
// carloX CCAssert(false, "Currently only supported on iOS and Android!");
// not implemented throw exception
#endif #endif
} }
@ -438,8 +436,7 @@ void CCLabelTTF::enableStroke(const ccColor3B &strokeColor, float strokeSize)
} }
#else #else
// carloX CCAssert(false, "Currently only supported on iOS and Android!");
// not implemented throw exception
#endif #endif
} }
@ -455,8 +452,7 @@ void CCLabelTTF::disableStroke()
} }
#else #else
// carloX CCAssert(false, "Currently only supported on iOS and Android!");
// not implemented throw exception
#endif #endif
} }
@ -470,8 +466,7 @@ void CCLabelTTF::setFontFillColor(const ccColor3B &tintColor)
this->updateTexture(); this->updateTexture();
} }
#else #else
// carloX CCAssert(false, "Currently only supported on iOS and Android!");
// not implemented throw exception
#endif #endif
} }

View File

@ -602,8 +602,7 @@ bool CCTexture2D::initWithStringShadowStroke(const char *text, ccTextDefinition
#else #else
// carloX CCAssert(false, "Currently only supported on iOS and Android!");
// not implemented throw exception
#endif #endif
} }