diff -r edafdaacae96 -r dfa3b31cc042 sourcemm/util.h --- a/sourcemm/util.h Sat Oct 15 17:55:31 2005 +0000 +++ b/sourcemm/util.h Thu Oct 20 14:37:47 2005 +0000 @@ -24,34 +24,4 @@ void UTIL_PathFmt(char *buffer, size_t len, const char *fmt, ...); bool UTIL_PathCmp(const char *path1, const char *path2); -#define META_INTERFACE_MACRO(type, final) \ - PluginIter i; \ - void *mret=NULL, *d; \ - META_RES mres, high=MRES_IGNORED; \ - g_SmmAPI.SetLastMetaReturn(MRES_IGNORED); \ - for (i=g_PluginMngr._begin(); i!=g_PluginMngr._end(); i++) \ - { \ - if ( (*i) && (*i)->fac_list. type ) \ - { \ - d = ((*i)->fac_list. type)(name, ret); \ - mres = g_SmmAPI.GetLastMetaReturn(); \ - if (mres > high) \ - high = mres; \ - if (mres >= MRES_OVERRIDE) \ - mret = d; \ - } \ - } \ - if (high == MRES_OVERRIDE) \ - { \ - if (final) \ - (final)(name, ret); \ - return mret; \ - } else if (high == MRES_SUPERCEDE) { \ - return mret; \ - } else { \ - if (final) \ - return (final)(name, ret); \ - return NULL; \ - } - #endif //_INCLUDE_UTIL_H