Description:
This allows You to predefine Your own OPT keywords, currently are
supported only single word keywords. Most of these definitions should
be defined in 'dmodules:powerd/options.m'
file. This file is supported from v0.09 it is always loaded before your
source is compiled, so never do anything with this file, if You don't
know what does it do!!! Between SETOPT and ENDOPT can be everything You
like, like constant definitions, variable definitions, another OPTions,
MODULEs, PROCedures etc. This allows You to use OPT
DOSONLY instead of
MODULE 'startup/startup_dos' and it is shorter,
isn't it? :)
Syntax:
SETOPT <name>
<code>
ENDOPT
where <name> is the new option name and
<code> is everything You like.
Usage:
You can simply enable the given option with:
OPT <name>
But You have to pay attention to not to combine options, that aren't relevant, because most
of these options use own headers and the single executable can use -only- single header, so
You can't combine for example: DOS and PPC, because DOSONLY enables the 68k header, that
open only the dos.library and PPC, that enables the PowerPC code generator and opens all the
libraries it need (powerpc, dos, intuition, graphics, exec). In practive You can't combine
any two (or more) of the defined OPTions in the dmodules:powerd/options.m ascii module.