Can you detect if include defined?
Closed this issue · 3 comments
sgjava commented
Something like:
#ifndef _HITECH_H
#define _HITECH_H
#endif
sgjava commented
Answering my own question here:
#ifndef _HITECH_H
#define _HITECH_H
#include "hitech.h"
#endif
This will stop recursion and prevent out of memory errors.
agn453 commented
If you look at the system include files you will see this style of conditional is used too.
Tony
sgjava commented
Yep, otherwise OOM errors. I just didn't know if the pre processor generated defines for includes. I did it the old school way.