Test speed thought...

This commit is contained in:
ThePhD 2016-06-11 11:51:56 -04:00
parent 8eb10388c1
commit 412718badb

View File

@ -289,6 +289,7 @@ struct getter<T*> {
}
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<T*> {
lua_pop(L, 1);
}
#endif // No Runtime Type Information || Exceptions
#endif // Speed test
T* obj = static_cast<T*>(udata);
return obj;
}