### access_errors

Controls whether or not to change illegal access errors to warnings.

##### Syntax

#pragma access_errors on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler issues an error instead of a warning when it detects illegal access to protected or private members. This has the effect of including the file once (like #pragma once). This is not a portable usage.

This pragma does not correspond to any panel setting. To check this setting, use __option (access_errors), described in Checking Settings.

The default setting is on.