예제 #1
0
    inline void* GetSymbol(const TStringBuf& name) const throw () {
        if (const mapped_type* ret = FindPtr(name)) {
            return ret->Address;
        }

        return 0;
    }
예제 #2
0
size_t CResourceRefArray::FindResourceName( RES_TYPE restype, LPCTSTR pszKey ) const
{
	ADDTOCALLSTACK("CResourceRefArray::FindResourceName");
	// Is this resource already in the list ?
	CResourceLink * pResourceLink = dynamic_cast <CResourceLink *>( g_Cfg.ResourceGetDefByName( restype, pszKey ));
	if ( pResourceLink == NULL )
		return BadIndex();
	return FindPtr(pResourceLink);
}