« Return to Thread: MPLAB Pre-processor

Re: MPLAB Pre-processor

by Alan B. Pearce-2 :: Rate this Message:

Reply to Author | View in Thread

>I discovered that there was a circular reference ie a .h
>file referred to a .h file that included the first .h file.

This is why all the statements in the .h file are usually inside a #ifdef
statement, that includes a #define of the value the #ifdef checks. Then if
the .h file is called again in such a loop, it is not reused.

--
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

 « Return to Thread: MPLAB Pre-processor