Does --PureLibrary and #PB_Compiler_IsMainFile make sense?
Posted: Sat Nov 01, 2025 5:40 pm
Hi All.
I started my adventure with --PureLibrary finally and came across the following.
I love to enclose my tests in include files with
My observation is that it doesn't work so well.
How do you do it? Separate Files?
Maybe the command should also work within the created libraries?
This is how I do it now:
TIA for your thoughts.
I started my adventure with --PureLibrary finally and came across the following.
I love to enclose my tests in include files with
Code: Select all
CompilerIf #PB_Compiler_IsMainFile ;-{·} TEST Area
CompilerEndIf
How do you do it? Separate Files?
Maybe the command should also work within the created libraries?
This is how I do it now:
Code: Select all
CompilerIf 0 ; #PB_Compiler_IsMainFile ;-{·} TEST Area
CompilerEndIf