EASy68K
http://www.easy68k.com/EASy68Kforum/

Does Easy68k support preprocessing or conditional includes?
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=5&t=1698
Page 1 of 1

Author:  Pangamma [ Fri Nov 29, 2019 8:32 pm ]
Post subject:  Does Easy68k support preprocessing or conditional includes?

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

?

Author:  profkelly [ Mon Dec 02, 2019 2:51 pm ]
Post subject:  Re: Does Easy68k support preprocessing or conditional includ

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/