Nift - include
Contents
Syntax
The syntax for include calls is:
:
include{options}(params)
:
@include{options}(params)
Description
The include function is for including f++/n++ files, for example files that contain function, struct and type definitions, including but not limited to library files. The include function takes a non-zero number of string parameters specifying files to include.
Note: If you attempt to include the same file more than once Nift will not throw an error, it just wont process the file more than once. For example if you have two different type files lib/type_1.nsm and lib/type_2.nsm that both need to include another identical file, they can do so without preventing you from incluing both lib/type_1.n and lib/type_2.n.
Options
The following options are available for include calls:
| option | description |
|---|---|
| f++ | parse files to include with f++ |
| n++ | parse files to include with n++ |
| option | description |
f++ example
Examples of include being used with f++:
include("process.f")
include{n++}("process.n")
n++ example
Examples of include being used with n++:
@include{f++}("process.f")
@include("process.n")