Page 8 of 8

Re: PureBasic 5.10 - Granted wishes release - is out !

Posted: Wed Jan 16, 2013 5:01 pm
by netmaestro
Did SoundFrequency() be vanished?
SoundFrequency() is indeed vanished, enhanced by a pair of new commands, GetSoundFrequency() and SetSoundFrequency().

Re: PureBasic 5.10 - Granted wishes release - is out !

Posted: Thu Jan 17, 2013 5:51 pm
by luis
BTW: just tried MacroExpandedCount and TypeOf(), they can be very useful thank you !

Re: PureBasic 5.10 - Granted wishes release - is out !

Posted: Thu Jan 17, 2013 6:09 pm
by skywalk
STARGÅTE wrote:thx for #PB_Compiler_IsIncludeFile and #PB_Compiler_IsMainFile!
Now I can add a sample code in the include, and it will not compile if it is included, only if the include run alone.
Thanks! That is helpful.
I have CompilerIf - Test code - CompilerEndIf in each of my include files.

Code: Select all

; With v5.0 and below...
CompilerIf #TestLib1  ;<-- need multiple #TestLib2, #TestLib3, etc. for each lib.
  DoSomeTest()
CompilerEndIf
; With v5.1 I can drop the unique #TestLibxx constants:
CompilerIf #PB_Compiler_IsMainFile
  DoSomeTest()
CompilerEndIf

Re: PureBasic 5.10 - Granted wishes release - is out !

Posted: Wed Jan 30, 2013 7:47 am
by blueznl
skywalk wrote:
STARGÅTE wrote:thx for #PB_Compiler_IsIncludeFile and #PB_Compiler_IsMainFile!
Now I can add a sample code in the include, and it will not compile if it is included, only if the include run alone.
Thanks! That is helpful.
I have CompilerIf - Test code - CompilerEndIf in each of my include files.
Yeah! I've been looking for this one! Thx Fred & Co!