Navigation bar
  Start Previous page
 25 of 208 
Next page End  

ZBasic Language Reference
17
ZX Microcontroller Family
Option Include
Option Include [ Public | Private ] <item-list>
Default: none
This directive can be used to add one or more pre-defined structures to the application.  If the Private
keyword is present, the structures will be private to the module in which the directive appears; otherwise
the structures will be public.
The <item-list> element consists of one or more names of pre-defined structures separated by commas. 
Example
Option Include Private Port_t, Timer16_t
Option Objects
Option Objects
Default: none
This option enables the ZBasic object-oriented extensions.  If used, it must appear for the first time in the
first module compiled.  If it does appear in the first module compiled then its presence in other modules is
silently ignored.  This option implicitly enables subroutine/function overloads as well.
Example
Option Objects
Option Overload
Option Overload
Default: none
This option enables the definition of subroutine/function overloads.  If used, it must appear for the first
time in the first module compiled.  If it does appear in the first module compiled then its presence in other
modules is silently ignored.  Note that this option is redundant if Option Objects is present.
Example
Option Objects
Option Library
Option Library "<object-library-filename>"
Default: none
This option, which can only be used for native mode devices, specifies the name of an object library that
should be linked in when the executable is built.   Typically, this directive will appear in a declarations file
that identifies the public entities contained in the library.  If the specified filename does not have a path
prefix, it is assumed that the specified name is relative to the directory of the module containing the
directive.
This option may be used in multiple modules as needed.
Example
Option Library "mylib.a"
Previous page Top Next page