forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nukes 514 support (ParadiseSS13#26224)
* Nukes 514 support * 1633 * replace CI exclude for proc refs * 1619
- Loading branch information
Showing
6 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// Validates the proc exists on this type (or global unfortunately) | ||
#define PROC_REF(X) (nameof(.proc/##X)) | ||
#define TYPE_PROC_REF(TYPE, X) (nameof(##TYPE.proc/##X)) | ||
#define GLOBAL_PROC_REF(X) (/proc/##X) | ||
#define NAMEOF_STATIC(datum, X) (#X || type::##X) | ||
#define CALL_EXT call_ext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// Use this for every proc passed in as second argument in regex.Replace. regex.Replace does not allow calling procs by name but as of 515 using proc refs will always call the top level proc instead of overrides | ||
#define REGEX_REPLACE_HANDLER SHOULD_NOT_OVERRIDE(TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
// This file contains defines allowing targeting byond versions newer than the supported | ||
//TODO: REMOVE THE 514 STUFF WHEN DREAMCHECKER AND DM LANG SERVER GET THEIR ACT TOGETHER | ||
// So we want to have compile time guarantees these procs exist on local type, unfortunately 515 killed the .proc/procname syntax so we have to use nameof() | ||
#if DM_VERSION < 515 | ||
#define PROC_REF(X) (.proc/##X) | ||
#define TYPE_PROC_REF(TYPE, X) (##TYPE.proc/##X) | ||
#define GLOBAL_PROC_REF(X) (.proc/##X) | ||
#define NAMEOF_STATIC(datum, X) (#X || ##datum.##X) | ||
#define CALL_EXT call | ||
#else | ||
/// Validates the proc exists on this type (or global unfortunately) | ||
#define PROC_REF(X) (nameof(.proc/##X)) | ||
#define TYPE_PROC_REF(TYPE, X) (nameof(##TYPE.proc/##X)) | ||
#define GLOBAL_PROC_REF(X) (/proc/##X) | ||
#define NAMEOF_STATIC(datum, X) (#X || type::##X) | ||
#define CALL_EXT call_ext | ||
#endif | ||
|
||
/// Use this for every proc passed in as second argument in regex.Replace. regex.Replace does not allow calling procs by name but as of 515 using proc refs will always call the top level proc instead of overrides | ||
#define REGEX_REPLACE_HANDLER SHOULD_NOT_OVERRIDE(TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters