#include "stdafx.h"
#define MY_GETMAX(type) \
type type##GetMax(type x,type y)\
{\
return x > y ? x : y;\
}
#define CALL_GetMax(type) type##GetMax
MY_GETMAX(int);
MY_GETMAX(float);
int main()
{
printf("%d",CALL_GetMax(int)(2,1));
printf("%f",CALL_GetMax(float)(2.0,1.0));return 0;
}