I have a very simple one line function and i want to replace it with macro, but macro doesn't seem to work.
Function:
int stack_empty(stack ** this_stack)
{
return *this_stack == NULL;
}
Macro i am trying to use:
#define stack_empty(x) (*x == NULL)
Anybody knows what i am doing wrong?