Bug with #PB_Compiler_ExecutableFormat ???
Posted: Tue Aug 29, 2023 12:43 am
Hello,
Can you check if by modifying the menu Compiler/Compiler Options.../Executable format: with the 3 possible values, there is indeed a bug with the Shared Dll option
The Windows and Console options do return the correct value for #PB_Compiler_ExecutableFormat, but the Shared Dll option returns the same value as the Windows option.
;Values of the 3 options:
#PB_Compiler_Executable = 0
#PB_Compiler_DLL = 1
#PB_Compiler_Console = 2
;Values returned by #PB_Compiler_ExecutableFormat
;0 if Windows option
;0 if Shared Dll option ---> Should be 1 (Bug?)
;2 if Console option
Thanks for trying,
Gérard
Test code:
Can you check if by modifying the menu Compiler/Compiler Options.../Executable format: with the 3 possible values, there is indeed a bug with the Shared Dll option
The Windows and Console options do return the correct value for #PB_Compiler_ExecutableFormat, but the Shared Dll option returns the same value as the Windows option.
;Values of the 3 options:
#PB_Compiler_Executable = 0
#PB_Compiler_DLL = 1
#PB_Compiler_Console = 2
;Values returned by #PB_Compiler_ExecutableFormat
;0 if Windows option
;0 if Shared Dll option ---> Should be 1 (Bug?)
;2 if Console option
Thanks for trying,
Gérard
Test code:
Code: Select all
CompilerSelect #PB_Compiler_ExecutableFormat
CompilerCase #PB_Compiler_Executable ; 0
CompilerError "Option Windows : " +#PB_Compiler_ExecutableFormat
CompilerCase #PB_Compiler_DLL ; 1
CompilerError "Option Shared Dll : "+#PB_Compiler_ExecutableFormat
CompilerCase #PB_Compiler_Console ; 2
CompilerError "Option Console : " +#PB_Compiler_ExecutableFormat
[CompilerDefault]
CompilerError "Option autre : " +#PB_Compiler_ExecutableFormat
CompilerEndSelect