# #pragma compatibility directive

Source: https://ref.dm-lang.org/DM/preprocessor/pragma/compatibility
Added in BYOND 516.

### Format
> `#pragma compatibility <version>`

Hints that the compiler should avoid using features past a certain major BYOND version. If it encounters a situation where you explicitly or implicitly use a newer feature than requested, it will generate a warning.

```dm
#pragma compatibility 515
```

This directive also alters the [DM_VERSION](https://ref.dm-lang.org/DM/preprocessor/DM_VERSION.md) macro.

A value of 0 or anything negative will reset the compatibility version to the default.

### See also
- [#pragma directive](https://ref.dm-lang.org/DM/preprocessor/pragma/index.md)
- [warn/ignore/error directive](https://ref.dm-lang.org/DM/preprocessor/warn.md)
- [DM_VERSION macro](https://ref.dm-lang.org/DM/preprocessor/DM_VERSION.md)
