$NOCOMPILE

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = Instruct the compiler not to compile the file. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;">&n...")
 
 
Line 48: Line 48:
  
 
<span style="font-family: 'Courier New';"></span>
 
<span style="font-family: 'Courier New';"></span>
 +
 +
<span style="font-family: 'Courier New';"></span>
 +
 +
<span style="font-family: 'Courier New';"></span>
 +
 +
  
 
<span style="font-family: 'Courier New';">{{Languages}}</span>
 
<span style="font-family: 'Courier New';">{{Languages}}</span>
  
[[Category:BASCOM_Language_Reference]]
 
  
<span style="font-family: 'Courier New';"></span>
+
 
 +
[[Category:BASCOM Language Reference]]

Latest revision as of 22:42, 6 February 2013

Contents

Action

Instruct the compiler not to compile the file.

 

 

Syntax

$NOCOMPILE

 

 

Remarks

This looks like an odd directive. Since you can split your program in multiple files, and you can create configuration files, you might open a file and try to compile it. Only normal project files can be compiled and you will get a number of errors and also unwanted files like error, report, etc.

To prevent that you compile a file that is intended to be included, you can insert the $NOCOMPILE directive.

Then the file will only be compiled when it is called from your main file, or other include file.

 

A file that is opened as thus the main file, and which includes the $NOCOMP directive, can not be compiled.

The IDE will see it as a successful compilation. This is important for the Batch Compiler.

 

 

See also

Batch Compiler

 

 

 

Example

$NOCOMPILE


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language