Author Topic: qbis64  (Read 3123 times)

0 Members and 1 Guest are viewing this topic.

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
qbis64
« on: June 12, 2020, 08:38:53 pm »
I need to check whether QB64 is 32 or 64-bit at compile time, something like
Code: [Select]
$if QBIS64 then
....
$else
.....
$endif
I knew it once but forgot

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: qbis64
« Reply #1 on: June 12, 2020, 11:17:23 pm »
$IF 32BIT THEN

$ELSE

$END IF

(or $IF 64BIT THEN)...
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Qwerkey

  • Forum Resident
  • Posts: 755
    • View Profile
Re: qbis64
« Reply #2 on: June 13, 2020, 04:14:00 am »
I knew it once but forgot
Well, I never knew this.  But now I've gone to the $IF Wiki, and there it is explained (including 32BIT/64BIT arguments).  Note to self: must spend more time amongst the Wiki.

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: qbis64
« Reply #3 on: June 13, 2020, 10:56:52 am »
@SMcNeill
thanks much :)
I could not find that info on the Wiki