[MANUAL MIRROR] Port OD Pragma Lints (#17171) (#10255)

Co-authored-by: Drathek <76988376+Drulikar@users.noreply.github.com>
This commit is contained in:
Selis
2025-03-01 22:14:20 +01:00
committed by GitHub
parent f05bc462ed
commit ed43b73661
118 changed files with 428 additions and 237 deletions

View File

@@ -5,11 +5,13 @@
#define ATAN2(x, y) arctan(x, y)
#define between(x, y, z) clamp(y, x, z)
// Update this whenever you need to take advantage of more recent byond features
// This file contains defines allowing targeting byond versions newer than the supported
//Update this whenever you need to take advantage of more recent byond features
#define MIN_COMPILER_VERSION 515
#define MIN_COMPILER_BUILD 1590
#if (DM_VERSION < MIN_COMPILER_VERSION || DM_BUILD < MIN_COMPILER_BUILD) && !defined(SPACEMAN_DMM)
// Don't forget to update this part
#if (DM_VERSION < MIN_COMPILER_VERSION || DM_BUILD < MIN_COMPILER_BUILD) && !defined(SPACEMAN_DMM) && !defined(OPENDREAM)
//Don't forget to update this part
#error Your version of BYOND is too out-of-date to compile this project. Go to https://secure.byond.com/download and update.
#error You need version 515.1590 or higher
#endif