$INCLUDE directive
Purpose: $INCLUDE merges a file
into the calling BCX file at translation time. $INCLUDE can be used anywhere in a program and the file
will be inserted at the position of the $INCLUDE directive.
Syntax 1: $INCLUDE "Path\Filename" Parameters:
|
Example:
$INCLUDE "C:\bcx\include\file.bas"
Syntax 2: $INCLUDE "Filename" Parameters:
|
Example:
$INCLUDE "file.bas"
Example:
$INCLUDE <file.bas>
Remarks:
BCX $INCLUDE files can be nested. This
means that a file called with $INCLUDE can
call other files to included.
#INCLUDE directive
Purpose: #INCLUDE merges a C
language header file into the translated C source at compile time.
You may add #INCLUDE statements anywhere in
your BASIC source code. BCX watches for these and adds them to the
top of the generated "C" file along with the other header
files.
Syntax 1: #INCLUDE "Path\Filename" Parameters:
|
Syntax 2: #INCLUDE "Filename" Parameters:
|
Example:
$INCLUDE "c_header.h";
Syntax 3:
#INCLUDE <Filename>
Parameters:
|
Example:
$INCLUDE <c_header.h>