Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
703
Project Level Defines:
Project Level Defines (
.pld
) files can also be added to project. Project level define files enable you to have defines that 
are visible in all source files in the project. A file must contain one definition per line in the following form:
ANALOG
DEBUG
TEST 
For example, lets make a project level define named 
pld_test
. First of all, create a new file with the 
.pld
 extension, 
pld_test_file.pld
Next, open it, and write something like this:
PLD_TEST
Once you have done this, save the file. In the Project Manager, add 
pld_test_file.pld
 file by right-clicking the 
Project Level Defines node.
In the source code write the following:
#IFDEF PLD_TEST
...
#ENDIF
There are number of predefined project level defines. See predefined project level defines
Related topics: Project Manager, Project Settings, Edit Project