Eo: Made an hot-path check compile out when not in debug mode.

SVN revision: 71286
This commit is contained in:
Tom Hacohen 2012-05-21 14:48:32 +00:00
parent 1174b27e52
commit b977e11ea6
1 changed files with 2 additions and 0 deletions

View File

@ -1384,10 +1384,12 @@ eo_data_get(const Eo *obj, const Eo_Class *klass)
ret = _eo_data_get(obj, klass);
#ifndef NDEBUG
if (!ret && (klass->desc->data_size == 0))
{
ERR("Tried getting data of class '%s', but it has none..", klass->desc->name);
}
#endif
return ret;
}