today i noticed that the compiler constant, which i declared recently, was stored at the end of the document for multiple times. It looked like this:
Code: Select all
; IDE Options = PureBasic 4.61 Beta 1 (Linux - x64)
; CursorPosition = 894
; FirstLine = 153
; Folding = AAAAwBA9
; EnableXP
; CPU = 5
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
; Constant = #Self=1
...
I am using the same source code on Linux and Windows. The compiler constant is used to execute some codelines if a modul runs by itself (#Self=1), but not, if it is embedded in a project (#Self=0).
Best regards,
Uwe

