Hi guys, I have a simple noob question for you.
say we got a header file called test.h and it contains the following content:
#define BOOL and in my c file test.c I want to see whether BOOL is defined, can I use the if statement to test it like this:
#include "test.h" ...... if(BOOL==1) ......
Is it assumed that once a macro is defined, it is equal to 1 in a C program?
THANX in advance guys!