EASy68K  
It is currently Thu Dec 05, 2019 6:08 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Nov 29, 2019 8:32 pm 
Offline

Joined: Thu Apr 23, 2015 10:37 pm
Posts: 3
I'd like to have some settings at the top of my main file that can quickly switch between including one file or a different file, but I cannot do it at run time. It has to be at compile time. Is this possible? Something like...

#if <awesome mode>
INCLUDE 'io_util_epic'
#else
INCLUDE 'io_util_lame'
#endif

?


Top
 Profile  
 
PostPosted: Mon Dec 02, 2019 2:51 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1107
Code:
START   ORG $1000

awesome equ 1           ; Set to 1 to include awesome code.

    ifne    awesome
    include io_util_epic.x68
    endc
    ifeq    awesome
    include io_util_lame.x68
    endc

    SIMHALT
    END START

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group