# ABC\_SCALE

> [HTML Version](abc_scale.htm)

_Added February 2022_

The auto-defined macro ABC\_SCALE is set to the current SCALE value, zero if no SCALE statement yet encountered. In environments that depend on SCALE, this allows you to insert conditionals into ++include files to make sure that SCALE hasn't accidentally been omitted from the main program, e.g.:

\++ifdef ABC\_SCALE                                \! does this compiler version support ABC\_SCALE?

    ++if ABC\_SCALE <> 2                          \! if so, is SCALE set to 2?

        ++error You forgot to set SCALE 2\!\!\!

    ++endif

\++endif



**History**

2021 October, A-Shell 6.5.1708, compiler edit 959:  Macro added to A-Shell