i download the sourcemm from CVS.
the code:
Code:
#define FIND_IFACE(func, assn_var, num_var, name, type) \
do { \
if ( (assn_var=(type)((ismm->func())(name, NULL))) != NULL ) { \
num = 0; \
break; \
} \
if (num >= 999) \
break; \
} while ( num_var=ismm->FormatIface(name, sizeof(name)-1) ); \
if (!assn_var) { \
if (error) \
snprintf(error, maxlen, "Could not find interface %s", name); \
return false; \
}
i think, "num = 0;" and "num >= 999" sould be "num_var".
And in the load function, num sould have a default value.
Elbandi