• 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.

  • Example:
    This should defined be defined in dmodules:powerd/options.m file.
      SETOPT DODEBUG
        MODULE 'startup/startup_debug'
        OPT LINK='debug.lib'
        #define DODGB
      ENDOPT
    

    and if You use in your code:
      OPT DODEBUG
    

    the module 'startup/startup_debug' will be processed, debug.lib will be linked and DODBG macro will be created.