Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user we-Honey ! (Registered 2019-07-16) You are not logged in 
CSDb User Forums


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

Registered: Dec 2018
Posts: 6
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: 380
MVAR .VAR $00

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

Registered: Sep 2003
Posts: 434
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: 6
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: 6
Ok I found it, and it did fix that issue. Thank you!
2019-06-26 10:19
oziphantom

Registered: Oct 2014
Posts: 327
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
Stoker/HOKUTO FORCE
Didi/Laxity
csabanw
Jedi
dandee/Laxity
St0rmfr0nt/ExCeSs
Toggle/Padua
DJS/Silicon Ltd
JackAsser/Booze Design
Guests online: 33
Top Demos
1 Unboxed  (9.7)
2 Uncensored  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 The Shores of Reflec..  (9.6)
7 Lunatico  (9.6)
8 Wonderland XII  (9.5)
9 C=Bit 18  (9.5)
10 X Marks the Spot  (9.5)
Top onefile Demos
1 Smile to the Sky  (9.5)
2 Dawnfall V1.1  (9.5)
3 Crystal Gazer  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Rewind  (9.5)
6 Instinct  (9.5)
7 Pandemoniac Part 5 o..  (9.5)
8 Innervasion  (9.4)
9 Bad Boy  (9.4)
10 Arok 20 Invitation  (9.4)
Top Groups
1 Fossil  (9.8)
2 PriorArt  (9.7)
3 Performers  (9.6)
4 Oxyron  (9.4)
5 Booze Design  (9.4)
Top Coders
1 ZeroPaige  (9.8)
2 Axis  (9.8)
3 CRT  (9.8)
4 Graham  (9.8)
5 Crossbow  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2019
Page generated in: 0.056 sec.