1.1 --- a/sourcemm/util.h Sat Oct 15 17:55:31 2005 +0000
1.2 +++ b/sourcemm/util.h Thu Oct 20 14:37:47 2005 +0000
1.3 @@ -24,34 +24,4 @@
1.4 void UTIL_PathFmt(char *buffer, size_t len, const char *fmt, ...);
1.5 bool UTIL_PathCmp(const char *path1, const char *path2);
1.6
1.7 -#define META_INTERFACE_MACRO(type, final) \
1.8 - PluginIter i; \
1.9 - void *mret=NULL, *d; \
1.10 - META_RES mres, high=MRES_IGNORED; \
1.11 - g_SmmAPI.SetLastMetaReturn(MRES_IGNORED); \
1.12 - for (i=g_PluginMngr._begin(); i!=g_PluginMngr._end(); i++) \
1.13 - { \
1.14 - if ( (*i) && (*i)->fac_list. type ) \
1.15 - { \
1.16 - d = ((*i)->fac_list. type)(name, ret); \
1.17 - mres = g_SmmAPI.GetLastMetaReturn(); \
1.18 - if (mres > high) \
1.19 - high = mres; \
1.20 - if (mres >= MRES_OVERRIDE) \
1.21 - mret = d; \
1.22 - } \
1.23 - } \
1.24 - if (high == MRES_OVERRIDE) \
1.25 - { \
1.26 - if (final) \
1.27 - (final)(name, ret); \
1.28 - return mret; \
1.29 - } else if (high == MRES_SUPERCEDE) { \
1.30 - return mret; \
1.31 - } else { \
1.32 - if (final) \
1.33 - return (final)(name, ret); \
1.34 - return NULL; \
1.35 - }
1.36 -
1.37 #endif //_INCLUDE_UTIL_H