QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: jack on June 12, 2020, 08:38:53 pm

Title: qbis64
Post by: jack 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
Title: Re: qbis64
Post by: SMcNeill on June 12, 2020, 11:17:23 pm
$IF 32BIT THEN

$ELSE

$END IF

(or $IF 64BIT THEN)...
Title: Re: qbis64
Post by: Qwerkey 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.
Title: Re: qbis64
Post by: jack on June 13, 2020, 10:56:52 am
@SMcNeill
thanks much :)
I could not find that info on the Wiki