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
Account closed

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: 463
MVAR .VAR $00

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

Registered: Sep 2003
Posts: 480
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
Account closed

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
Account closed

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: 490
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
csabanw
instant
Derision/Longshot
psych
Linus/MSL
algorithm
Røly/Mayday!
Krill/Plush
zscs
Guests online: 85
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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