diff options
author | Mateo Dev .59 <mateomiccino@gmail.com> | 2020-02-20 11:13:08 -0300 |
---|---|---|
committer | Mateo Miccino <mateomiccino@gmail.com> | 2020-03-04 04:44:47 -0300 |
commit | c933eb7accce31e74a244ea5ed0c6bd5b0aa14ca (patch) | |
tree | 23d41339ad6aaf7a4f1c27901ffef3d5102ea920 /core | |
parent | aee36ec01b346a9b1bef607eb0b66722f58eeca1 (diff) |
Change when we can ERR_FAIL_COND and ERR_FAIL_CONV_V to static_assert
Diffstat (limited to 'core')
-rw-r--r-- | core/register_core_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/register_core_types.cpp b/core/register_core_types.cpp index 07a252ad31..b0ba8ed194 100644 --- a/core/register_core_types.cpp +++ b/core/register_core_types.cpp @@ -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(); |