I'm trying to make some project in C.
I would like to know if it is possible to make #include from the same file twice, in a way that recalls diamond heritage.
i.e.
- in a.c there is
#include "a.h" - in b.c there is
#include "b.h" - in b.h there is
#include "a.h"
Is it possible to #include "b.h" in a.c?
I get an error:
some_variable already defined in a.obj