diff --git a/sol/stack_get.hpp b/sol/stack_get.hpp index a31bc77b..72e4645b 100644 --- a/sol/stack_get.hpp +++ b/sol/stack_get.hpp @@ -289,6 +289,7 @@ struct getter { } static T* get_no_nil_from(lua_State* L, void* udata, int index = -1) { +#if 0 #ifndef SOL_NO_EXCEPTIONS if (luaL_getmetafield(L, index, &detail::base_class_check_key()[0]) != 0) { void* basecastdata = lua_touserdata(L, -1); @@ -315,6 +316,7 @@ struct getter { lua_pop(L, 1); } #endif // No Runtime Type Information || Exceptions +#endif // Speed test T* obj = static_cast(udata); return obj; }