Change when we can ERR_FAIL_COND and ERR_FAIL_CONV_V to static_assert

This commit is contained in:
Mateo Dev .59 2020-02-20 11:13:08 -03:00 committed by Mateo Miccino
parent aee36ec01b
commit c933eb7acc
4 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ extern void unregister_variant_methods();
void register_core_types() {
//consistency check
ERR_FAIL_COND(sizeof(Callable) > 16);
static_assert(sizeof(Callable) <= 16);
ObjectDB::setup();
ResourceCache::setup();