Inconsistent result of asIScriptModule GetTypeInfoByDecl and GetTypeIdByDecl
gamedev.net
This passed the assertionint foo_handle_id = m->GetTypeIdByDecl("foo@");assert(is_objhandle(foo_handle_id));But this didn'tint foo_handle_id = m->GetTypeInfoByDecl("foo@")->GetTypeId();assert(is_objhandle(foo_handle_id));The is_objhandle(int type_id) tests the asTYPEID_OBJHANDLE bit.
0 Commenti ·0 condivisioni ·27 Views