maxerrorcount

Limits the number of error messages emitted while compiling a single file.

Syntax
  #pragma maxerrorcount( num | off )
  
  
Parameters

num

Specifies the maximum number of error messages issued per source file.

off

Does not limit the number of error messages issued per source file.

Remarks

The total number of error messages emitted may include one final message:

  Too many errors emitted
  
  

This pragma does not correspond to any panel setting. By default, this pragma is off.