+1
When I write include files, I like to append example code or test code at the bottom. These need to be commented out or CompilerIf'ed out between each test execute versus each inclusion in another project.
It would be nice to simply do something like this:
Code:
; Contents of an include file:
Your Constants Here
Your Structures Here
Your Procedures Here
Etc...
CompilerIf (#PB_Compiler_IncludeFile = #False)
Your Test/Example Code Here
CompilerEndif
An alternative would be the exact opposite: instead of a constant that indicates whether it is an Included file, a constant that indicates whether it is the "top" or main file being compiled.