Skip to content

Compiler Option Earray

Paul Squires edited this page Oct 14, 2026 · 3 revisions

Home › Compiler Option: -earray

Compiler Option: -earray

Enable array bounds checking

Syntax

-earray

Description

Add array bounds error checking in generated run-time code. A run-time error is generated if an array index attempts to access an array element that is outside the bounds of the array.

-earray is automatically implied by the -exx option.

__FB_ERR__ can be used to determine in user source code if the -earray option was specified or implied on the command line.

Version

See also


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally