Closed
Description
It would be fantastic if we had a pre-compiler statement that made sure the file being $INCLUDE
d is only included once.
In C this is #pragma once
I believe.
Why would it help?
We could avoid having to handle our own defines all over our code.
Here is an example of where I have had to implement my own include "guards":
Once at the top of the file for the .BI
:
$IF GJ_LIB_ANSI_INC_BI = UNDEFINED THEN
'$INCLUDE:'ANSI.BI'
$END IF
Then at the bottom of the file for the .BM
:
$IF GJ_LIB_ANSI_INC_BM = UNDEFINED THEN
'$INCLUDE:'ANSI.BM'
$END IF
I know this is an extreme case, but my library could be cleaned up quite a bit if we just had a feature like this.
Thanks for listening!
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done