Fixed assert util
Fixed assert util

Use assert for critical errors at runtime (errors that can only be
handled in the debugging phase). Use ccError to handle errors that the
users may be able to handle themselves (failing to change the resolution
for example).

ccore/ccore