__FB_VERSION__

General FreeBASIC programming questions.
Post Reply
deltarho[1859]
Posts: 4308
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

__FB_VERSION__

Post by deltarho[1859] »

What is wrong with this folks?

Code: Select all

Dim As String CommandLine
? __FB_VERSION__
#if __FB_VERSION__ < "!.10.0"
  CommandLine += " -arch 686 "
#else
  CommandLine += "*"
#endif
? Commandline
Sleep
I am runnng 1.09.0, so I should see

Code: Select all

1.09.0
 -arch 686
but I am getting

Code: Select all

1.09.0
*
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: __FB_VERSION__

Post by badidea »

"1" instead of "!" in "!.10.0" ?
deltarho[1859]
Posts: 4308
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: __FB_VERSION__

Post by deltarho[1859] »

:o

Thanks badidea.

I must have used Shift+1.

I had to push my chair forward to see the exclamation – it looked like 1.

It works fine now. :)
Post Reply