INCLUDE statement

The include statement is used to insert XCSB source code or library code into the current file at the position of the include statement

if the file file1.bas contains the source code

// start of file1
byte var1, var2
// end of file1
and the file file2.bas contains the source code
// start of file2
int x, y
include "file1.bas"
int v, w
// end of file2
Then the XCSB compiler will process
// start of file2
int x, y
// start of file1
byte var1, var2
// end of file1
int v, w
// end of file2

syntax

include filename
where filename is a constant string, variables are NOT allowed. The filename must be enclosed in string quotes