I am trying to understand a code in c++ header.
#define GET_VAL(fn) void fn(int val)
typedef GET_VAL ((*get_val));
struct myStruct
{
get_val getValue;
};
In the source file, the function getValue is called.
getValue(2);
Anyone have any ideas?