|
![](/i/fill.gif) |
Rune <run### [at] runevision com> wrote:
> But then you risk having certain include files, that many other include
> files rely on, included several times.
> Not only does it slow down parsing - if there are function declarations in
> the include, you will get an error when the same functions are attempted
> declared for the second time!
That's why there are #ifndefs and #declares at the beginning of the
include files. If the file is included a second time, the #ifndef will
skip it.
If parsing speed is a worry then the #ifndef can be copied to be
around the #include command. That is, if an include file #includes
shapes.inc, then that inclusion could be written as:
#ifndef(SHAPES_INC_TEMP)
#include "shapes.inc"
#end
This will somewhat speed up parsing.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |