Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
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: 413
MVAR .VAR $00

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

Registered: Sep 2003
Posts: 450
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: 409
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
Lynx/ΤRIΛD
Matt
Guests online: 72
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.6)
3 Coma Light 13  (9.6)
4 Memento Mori  (9.6)
5 Comaland 100%  (9.6)
6 The Shores of Reflec..  (9.6)
7 Unboxed  (9.6)
8 Lunatico  (9.6)
9 Remains  (9.5)
10 C=Bit 18  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.5)
2 Gumbo Revised  (9.5)
3 Smile to the Sky  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Bad Boy  (9.5)
6 Crystal Gazer  (9.5)
7 Cuarentenauta  (9.5)
8 Instinct  (9.5)
9 Listen to Your Eyes  (9.5)
10 The Night It Snowed  (9.5)
Top Groups
1 PriorArt  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Fossil  (9.4)
5 Performers  (9.3)
Top Graphicians
1 Mikael  (9.8)
2 Mirage  (9.7)
3 Archmage  (9.7)
4 Razorback  (9.7)
5 Electric  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2020
Page generated in: 0.052 sec.