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