Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > 64TASS conditional include
2019-06-26 02:25
xlar54

Registered: Dec 2018
Posts: 9
64TASS conditional include

Anyone know how to do this? Ive tried:

myvar :?= 0
.if myvar = 0
myvar := 1

...

.endif


but I get "general syntax" error on the first line

trying to conditionally include as one would with C .h files.
2019-06-26 06:47
Flavioweb

Registered: Nov 2011
Posts: 442
MVAR .VAR $00

.IFEQ MVAR
    MVAR := $01
.FI
2019-06-26 07:16
soci

Registered: Sep 2003
Posts: 472
I think you try to do an include guard.

The syntax is correct but you need at least 1.54.1864 for the conditional assign to be recognized. Or better take 1.54.1900 where I corrected a few things.
2019-06-26 08:11
xlar54

Registered: Dec 2018
Posts: 9
Thanks. I will get the latest (I assume from here, or is there a github repo?)
2019-06-26 08:34
xlar54

Registered: Dec 2018
Posts: 9
Ok I found it, and it did fix that issue. Thank you!
2019-06-26 10:19
oziphantom

Registered: Oct 2014
Posts: 478
From SourceForge
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Beast/Crescent
Broti/DT/KRN
Guests online: 336
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.039 sec.