20.08.2011, 17:03
pawn Код:
#define INI_String(%1,%2,%3) \
if(!strcmp((%1),name,true)&&!sscanf(value,"s["#%3"]",%2))return;
//if (!strcmp((%1), name, true)) return %2(value)
#else
#define INI_Int(%1,%2) \
if(!strcmp((%1),name,true))return %2=strval(value)
#define INI_Float(%1,%2) \
if(!strcmp((%1),name,true))return _:(%2=floatstr(value))
#define INI_Hex(%1,%2) \
if(!strcmp((%1),name,true))return %2=hexstr(value)
#define INI_Bin(%1,%2) \
if(!strcmp((%1),name,true))return %2=binstr(value)
#define INI_Bool(%1,%2) \
if(!strcmp((%1),name,true))return %2=boolstr(value)
#define INI_String(%1,%2,%3) \
if(!strcmp((%1),name,true))return strcpy(%2,value,%3)
#endif